11namespace sen21231_sensor {
13static const uint8_t PERSON_SENSOR_I2C_ADDRESS = 0x62;
14static const uint8_t PERSON_SENSOR_REG_MODE = 0x01;
15static const uint8_t PERSON_SENSOR_REG_ENABLE_ID = 0x02;
16static const uint8_t PERSON_SENSOR_REG_SINGLE_SHOT = 0x03;
17static const uint8_t PERSON_SENSOR_REG_CALIBRATE_ID = 0x04;
18static const uint8_t PERSON_SENSOR_REG_PERSIST_IDS = 0x05;
19static const uint8_t PERSON_SENSOR_REG_ERASE_IDS = 0x06;
20static const uint8_t PERSON_SENSOR_REG_DEBUG_MODE = 0x07;
22static const uint8_t PERSON_SENSOR_MAX_FACES_COUNT = 4;
23static const uint8_t PERSON_SENSOR_MAX_IDS_COUNT = 7;
46 uint8_t box_confidence;
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
void dump_config() override
Base-class for all sensors.
struct @67::@68 __attribute__
struct __attribute__((__packed__)) { person_sensor_results_header_t header; int8_t num_faces; person_sensor_face_t faces[PERSON_SENSOR_MAX_FACES_COUNT]; uint16_t checksum; } person_sensor_results_t
struct __attribute__((__packed__)) { uint8_t box_confidence; uint8_t box_left; uint8_t box_top; uint8_t box_right; uint8_t box_bottom; int8_t id_confidence; int8_t id; uint8_t is_facing; } person_sensor_face_t
struct { uint8_t reserved[2]; uint16_t data_size; } person_sensor_results_header_t
Providing packet encoding functions for exchanging data with a remote host.