◆ getSensor() [1/2]
Use this method to get a sensor of a certain type. Will return the first sensor of the passed type.
- Note
- The pointer is only safe to store while the Kallisto that contains it is available.
- Parameters
-
type | The type of the desired sensor. See type class for the available types. |
- Returns
- The sensor of the requested type or nullptr if none available.
◆ getSensor() [2/2]
Use this method to get a sensor of a certain type from a certain device. Will return the first sensor of the passed type.
- Note
- The pointer is only safe to store while the Kallisto that contains it is available.
- Parameters
-
type | The type of the desired sensor. See type class for the available types. |
- Returns
- The sensor of the requested type or nullptr if none available.
◆ getSensors() [1/3]
Use this method to get the list of available sensors.
- Note
- The pointers are only safe to store while the Kallisto that contains it is available.
- Returns
- A list with all the sensors available.
◆ getSensors() [2/3]
Use this method to get the list of available sensors of a certain type.
- Note
- The pointers are only safe to store while the Kallisto that contains it is available.
- Parameters
-
type | The type of the desired sensors. See type class for the available types. |
- Returns
- A list with all the sensors available of the requested type.
◆ getSensors() [3/3]
Use this method to get the list of available sensors of a certain device.
- Note
- The pointers are only safe to store while the Kallisto that contains it is available.
- Parameters
-
address | The address of the desired sensors. |
- Returns
- A list with all the sensors available of the requested type.
◆ registerListener() [1/2]
Registers a listener for the given sensor.
Should only be used with sensors that report continuously.
Blocking function.
- See also
- hardware::Sensor::ReportingMode
-
hardware::Sensor::getReportingMode()
- Parameters
-
listener | A listener to receive sensor events. |
sensor | The sensor to register to. |
rateUs | The rate sensor events are delivered at. This is only a hint to the system. Events may be received faster or slower than the specified rate. Some sensors reporting mode don't use this delay since they report only on changes. |
- Returns
- A detailed result.
◆ registerListener() [2/2]
◆ unregisterListener() [1/2]
Unregisters the listener for the passed sensor.
Blocking function if the device is no longer in use.
- Parameters
-
- Returns
- A detailed result.
◆ unregisterListener() [2/2]
Unregisters the listener for all sensors.
Blocking function if the device is no longer in use.
- Parameters
-
- Returns
- A detailed result.
The documentation for this class was generated from the following file:
- /home/joao.oliveira/Workspace/local/repo/documentation/sphinx/source/components/kallistolinuxapi/include/core/managers/sensor_manager.hpp