Module omnisensor::sensor
source · [−]Expand description
Backend-independent code for implementing and managing sensors.
Modules
Convenience args for building read-only properties with build_sensor_property()
Structs
The
PropChgMsgFn for the xyz.openbmc_project.Association.Definitions interface.The
PropChgMsgFn for the xyz.openbmc_project.State.Decorator.Availability
interface.The
PropChgMsgFn for the xyz.openbmc_project.State.Decorator.OperationalStatus
interface.The top-level representation of a sensor.
A
SensorIO plus some surrounding context.A running task that updates a sensor’s value.
The aggregate of all the dbus interfaces for a sensor.
A collection of
PropChgMsgFns for the xyz.openbmc_project.Sensor.Value
interface.Enums
An enum of config data all supported sensor types.
An enum of underlying I/O mechanisms used to retrieve sensor readings.
A sensor’s (dbus) read-only or read-write mode.
The type of a sensor.
Constants
The number of consecutive update errors after which a sensor’s
Functional attribute is set to false.
Functions
Construct a property for a sensor interface.
Iterate through a sensor map and deactivate all the sensors whose
power_state no longer matches the current host power state.Find a
SensorMap entry for the given key.Given a
SensorMapEntry from get_nonactive_sensor_entry(), either activate the
inactive sensor or instantiate a new one.Instantiate sensors from all backends to match the given
cfg.Type Definitions
Type alias for an async function used to determine when a sensor’s reading should next be updated.
A map of all sensor configs retrieved from entity-manager.
Maps sensor names to Sensors.
A convenience alias for use with
get_nonactive_sensor_entry() and install_or_activate().