1description: >
2    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"
5      signal is emitted.
6methods:
7    - 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
25
26properties:
27    - name: Enabled
28      type: boolean
29      default: true
30      description: >
31          Enable/disable the button object. false means button is disabled true
32          means button is enabled
33      errors:
34          - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
35          - xyz.openbmc_project.Chassis.Common.Error.IOError
36
37signals:
38    - name: Released
39      description: >
40          Button released signal
41    - name: Pressed
42      description: >
43          Button pressed signal
44    - name: PressedLong
45      description: >
46          Button long pressed signal
47