29 #define MB1242_DEFAULT_ADDRESS 0x70 54 static void cb(uint8_t result);
78 uint32_t now_ms =
millis();
105 void cb(uint8_t result)
static callack_type_t callback_type_
volatile uint32_t millis(void)
void mb1242_async_update()
static void cb(uint8_t result)
bool i2cWrite(uint8_t addr_, uint8_t reg_, uint8_t data)
static uint32_t next_update_time_ms_
void i2c_queue_job(i2cJobType_t type, uint8_t addr_, uint8_t reg_, uint8_t *data, uint8_t length, volatile uint8_t *status_, void(*CB)(uint8_t))
static uint32_t last_update_time_ms_
#define MB1242_DEFAULT_ADDRESS
static bool sensor_present_
static const uint8_t START_MEASUREMENT_CMD
float mb1242_async_read()
static uint32_t distance_cm_
static sonar_state_t state_