blob: f5f4704d77393bdfef8a33eaf98aa42c27aa17a6 [file] [log] [blame]
Naveen Mosesdac7f6c2022-04-13 18:20:16 +05301description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 Button interface is a generic phosphor button interface which supports two
3 primary actions (pressed/releasd). When the button is pressed "Pressed"
4 signal is emitted and when button is released then "Released"
Naveen Mosesdac7f6c2022-04-13 18:20:16 +05305 signal is emitted.
6methods:
Patrick Williamsa1347412022-12-06 10:56:22 -06007 - name: simPress
8 description: >
9 Emulate button press.
10 errors:
11 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
12 - xyz.openbmc_project.Chassis.Common.Error.IOError
13 - name: simRelease
14 description: >
15 Emulate button release.
16 errors:
17 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
18 - xyz.openbmc_project.Chassis.Common.Error.IOError
19 - name: simLongPress
20 description: >
21 Emulate long button press.
22 errors:
23 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
24 - xyz.openbmc_project.Chassis.Common.Error.IOError
Naveen Mosesdac7f6c2022-04-13 18:20:16 +053025
26properties:
27 - name: Enabled
28 type: boolean
29 default: true
30 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060031 Enable/disable the button object. false means button is disabled true
32 means button is enabled
Naveen Mosesdac7f6c2022-04-13 18:20:16 +053033 errors:
34 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
35 - xyz.openbmc_project.Chassis.Common.Error.IOError
36
37signals:
38 - name: Released
39 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060040 Button released signal
Naveen Mosesdac7f6c2022-04-13 18:20:16 +053041 - name: Pressed
42 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060043 Button pressed signal
Naveen Mosesdac7f6c2022-04-13 18:20:16 +053044 - name: PressedLong
45 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060046 Button long pressed signal