14 namespace seeed_mr60bha2 {
16 static const uint8_t DATA_BUF_MAX_SIZE = 12;
17 static const uint8_t FRAME_BUF_MAX_SIZE = 21;
18 static const uint8_t LEN_TO_HEAD_CKSUM = 8;
19 static const uint8_t LEN_TO_DATA_FRAME = 9;
21 static const uint8_t FRAME_HEADER_BUFFER = 0x01;
22 static const uint16_t BREATH_RATE_TYPE_BUFFER = 0x0A14;
23 static const uint16_t HEART_RATE_TYPE_BUFFER = 0x0A15;
24 static const uint16_t DISTANCE_TYPE_BUFFER = 0x0A16;
43 SUB_SENSOR(breath_rate);
44 SUB_SENSOR(heart_rate);
void process_frame_(uint16_t frame_id, uint16_t frame_type, const uint8_t *data, size_t length)
std::vector< uint8_t > rx_message_
float get_setup_priority() const override
const float LATE
For components that should be initialized at the very end of the setup process.
void dump_config() override
Implementation of SPI Controller mode.