-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Can anyone help me for the discrete sensor to encode the statecase like if inventory instance I would like to do :
- if is present and functional then encode as 0x01
- if is present and not functional then encode as 0x02
- if not present then forced into 0x04
That means each case matches two dbus property state and only assert one bit and deassert other bits
Can exist configuration settings implement this? Please give me an example for this! Thanks a lot for answering in advance.
I have tried like following pattern, but assert bits will exist at the same time such as 0x05 or 0x06
interfaces:
xyz.openbmc_project.Inventory.Item:
Present:
Offsets:
0x04:
assert: false
deassert: true
type: bool
xyz.openbmc_project.State.Decorator.OperationalStatus:
Functional:
Offsets:
0x06:
assert: true
deassert: false
type: bool
Prereqs:
0x04:
assert: false
deassert: true
type: bool
Metadata
Metadata
Assignees
Labels
No labels