Classes | |
| struct | sensor_command_header_t |
| Sensor Commnad Header. All sensor command has this header. More... | |
| struct | sensor_command_data_t |
| The command of send some sensor data without MemHandle to the sensor manager. More... | |
| struct | sensor_command_data_mh_t |
| The command of send some sensor data with MemHandle to the sensor manager. This function only can call on C++. More... | |
| struct | sensor_command_register_t |
| The command of resister a sensor. More... | |
| struct | sensor_command_release_t |
| The command of release the sensor. More... | |
| struct | sensor_command_change_subscription_t |
| The command of change subscription of client. More... | |
| struct | sensor_command_result_t |
| The command of release the sensor. More... | |
| struct | sensor_command_power_t |
| The command of setting sleep mode to sensor. More... | |
Typedefs | |
| typedef bool(* | sensor_data_callback_t) (sensor_command_data_t &) |
| A function pointer for sensor data (without mem handle) callback. | |
| typedef bool(* | sensor_data_mh_callback_t) (sensor_command_data_mh_t &) |
| A function pointer for sensor data with MemHandle callback. | |
| typedef bool(* | sensor_power_callback_t) (bool) |
| A function pointer for power control callback. | |
| typedef void(* | api_response_callback_t) (unsigned int code, unsigned int ercd, unsigned int self_id) |
| A function pointer for API response callback. | |
Enumerations | |
| enum | SensorCommandCode { ResisterClient = 0 , ReleaseClient , ChangeSubscription , SetPower , ClearPower , SendData , SendDataMH , SendResult , SensorCommandMum } |
| Sensor Command Code for each sensors. More... | |
Functions | |
| bool | SS_ActivateSensorSubSystem (MsgQueId selfMId, api_response_callback_t callback) |
| Activation function for sensor manager. Before using a sensor manager, it is necessary to call this API. More... | |
| bool | SS_DeactivateSensorSubSystem () |
| Deativation function for sensor manager. More... | |
| void | SS_SendSensorData (FAR sensor_command_data_t *packet) |
| Sender function to Sensor Manager without MemHandle. Send data is publish to own subscriber. More... | |
| void | SS_SendSensorResult (FAR sensor_command_result_t *packet) |
| Sender function to Sensor Manager without MemHandle. Send result data is publish to own subscriber. More... | |
| void | SS_SendSensorResister (FAR sensor_command_register_t *packet) |
| Resister a sensor client to Sensor Manager as subscriber. Registed sensor can recieve a "publish data" from required sensors. When data is published, a registed callback function will be called. More... | |
| void | SS_SendSensorSetPower (FAR sensor_command_power_t *packet) |
| When sensor power mode are controlled, this function can set. (If you enable CONFIG_SENSING_MANAGER_POWERCTRL.) More... | |
| void | SS_SendSensorClearPower (FAR sensor_command_power_t *packet) |
| void | SS_SendSensorRelease (FAR sensor_command_release_t *packet) |
| Unresister the sensor client from Sensor Manager. More... | |
| void | SS_SendSensorChangeSubscription (FAR sensor_command_change_subscription_t *packet) |
| Change subscriptions of sensor client. More... | |
| void | SS_SendSensorDataMH (FAR sensor_command_data_mh_t *packet) |
| Sender function to Sensor Manager with MemHandle Send data is publish to own subscriber. More... | |
| enum SensorCommandCode |
Sensor Command Code for each sensors.
| bool SS_ActivateSensorSubSystem | ( | MsgQueId | selfMId, |
| api_response_callback_t | callback | ||
| ) |
Activation function for sensor manager. Before using a sensor manager, it is necessary to call this API.
| bool SS_DeactivateSensorSubSystem | ( | ) |
Deativation function for sensor manager.
| void SS_SendSensorData | ( | FAR sensor_command_data_t * | packet | ) |
Sender function to Sensor Manager without MemHandle. Send data is publish to own subscriber.
| [in] | packet |
| void SS_SendSensorResult | ( | FAR sensor_command_result_t * | packet | ) |
Sender function to Sensor Manager without MemHandle. Send result data is publish to own subscriber.
| [in] | packet |
| void SS_SendSensorResister | ( | FAR sensor_command_register_t * | packet | ) |
Resister a sensor client to Sensor Manager as subscriber. Registed sensor can recieve a "publish data" from required sensors. When data is published, a registed callback function will be called.
| [in] | packet |
| void SS_SendSensorSetPower | ( | FAR sensor_command_power_t * | packet | ) |
When sensor power mode are controlled, this function can set. (If you enable CONFIG_SENSING_MANAGER_POWERCTRL.)
| [in] | packet |
| void SS_SendSensorRelease | ( | FAR sensor_command_release_t * | packet | ) |
Unresister the sensor client from Sensor Manager.
| [in] | packet |
| void SS_SendSensorChangeSubscription | ( | FAR sensor_command_change_subscription_t * | packet | ) |
Change subscriptions of sensor client.
| [in] | packet |
| void SS_SendSensorDataMH | ( | FAR sensor_command_data_mh_t * | packet | ) |
Sender function to Sensor Manager with MemHandle Send data is publish to own subscriber.
| [in] | packet |