Zephyr API 3.6.99
|
#include <stdbool.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sensing/sensing.h>
Go to the source code of this file.
Data Structures | |
struct | sensing_sensor_register_info |
Sensor registration information. More... | |
Macros | |
#define | SENSING_SENSORS_DT_DEFINE(node, reg_ptr, cb_list_ptr, init_fn, pm_device, data_ptr, cfg_ptr, level, prio, api_ptr, ...) |
Like SENSOR_DEVICE_DT_DEFINE() with sensing specifics. | |
#define | SENSING_SENSORS_DT_INST_DEFINE(inst, ...) |
Like SENSING_SENSORS_DT_DEFINE() for an instance of a DT_DRV_COMPAT compatible. | |
Functions | |
int | sensing_sensor_get_reporters (const struct device *dev, int type, sensing_sensor_handle_t *reporter_handles, int max_handles) |
Get reporter handles of a given sensor instance by sensor type. | |
int | sensing_sensor_get_reporters_count (const struct device *dev, int type) |
Get reporters count of a given sensor instance by sensor type. | |
int | sensing_sensor_get_state (const struct device *dev, enum sensing_sensor_state *state) |
Get this sensor's state. | |