summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/Led/Physical.interface.yaml
blob: f4f9784c486b2e7a3bd40abd4c905cdb806e5683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
description: >
    Interface to control physical LED.

properties:
    - name: State
      type: enum[self.Action]
      default: 'Off'
      description: >
        Current State of the LED.

    - name: DutyOn
      type: byte
      default: 50
      description: >
        Percentage time the LED needs to be ON while blinking.

    - name: Color
      type: enum[self.Palette]
      default: Unknown
      description: >
        Color that the LED can emit.

    - name: Period
      type: uint16
      default: 1000
      description: >
        LED blink period expressed as milliseconds per on/off cycle.

enumerations:
    - name: Action
      description: >
          Possible states a LED can be in.
      values:
        - name: 'Off'
          description: >
            LED is in OFF state
        - name: 'On'
          description: >
            LED is in solid ON state
        - name: 'Blink'
          description: >
            LED is blinking

    - name: Palette
      description: >
          Possible colors that the LED can emit.
      values:
        - name: Unknown
          description: >
            Color emitted by LED is unknown.
        - name: Red
          description: >
            LED can emit Red color.
        - name: Green
          description: >
            LED can emit Green color.
        - name: Blue
          description: >
            LED can emit Blue color.
        - name: Yellow
          description: >
            LED can emit Yellow color.
OpenPOWER on IntegriCloud