|
typedef int(* | sensing_sensor_init_t) (const struct device *dev, const struct sensing_sensor_info *info, const sensing_sensor_handle_t *reporter_handles, int reporters_count) |
| Sensor initialize.
|
|
typedef int(* | sensing_sensor_deinit_t) (const struct device *dev) |
| Sensor's de-initialize.
|
|
typedef int(* | sensing_sensor_reset_t) (const struct device *dev) |
| Sensor reset.
|
|
typedef int(* | sensing_sensor_read_sample_t) (const struct device *dev, void *buf, int size) |
| Sensor read sample.
|
|
typedef int(* | sensing_sensor_process_t) (const struct device *dev, int reporter, void *buf, int size) |
| Sensor process data.
|
|
typedef int(* | sensing_sensor_self_calibration_t) (const struct device *dev) |
| Trigger a sensor to do self calibration.
|
|
typedef int(* | sensing_sensor_sensitivity_test_t) (const struct device *dev, int index, uint32_t sensitivity, void *last_sample_buf, int last_sample_size, void *current_sample_buf, int current_sample_size) |
| Sensitivity arbitration.
|
|
typedef int(* | sensing_sensor_set_interval_t) (const struct device *dev, uint32_t value) |
| Set current report interval.
|
|
typedef int(* | sensing_sensor_get_interval_t) (const struct device *dev, uint32_t *value) |
| Get current report interval.
|
|
typedef int(* | sensing_sensor_set_sensitivity_t) (const struct device *dev, int index, uint32_t value) |
| Set data change sensitivity.
|
|
typedef int(* | sensing_sensor_get_sensitivity_t) (const struct device *dev, int index, uint32_t *value) |
| Get current data change sensitivity.
|
|
typedef int(* | sensing_sensor_set_range_t) (const struct device *dev, int index, uint32_t value) |
| Set data range.
|
|
typedef int(* | sensing_sensor_get_range_t) (const struct device *dev, int index, uint32_t *value) |
| Get current data range.
|
|
typedef int(* | sensing_sensor_set_fifo_t) (const struct device *dev, uint32_t samples) |
| Set current sensor's hardware fifo size.
|
|
typedef int(* | sensing_sensor_get_fifo_t) (const struct device *dev, uint32_t *samples) |
| Get current sensor's hardware fifo size.
|
|
typedef int(* | sensing_sensor_set_offset_t) (const struct device *dev, int index, int32_t value) |
| Set current sensor data offset.
|
|
typedef int(* | sensing_sensor_get_offset_t) (const struct device *dev, int index, int32_t *value) |
| Get current sensor data offset.
|
|