7static bool reached(uint32_t now, uint32_t t) {
8 return (int32_t)(now - t) >= 0;
89 for (
int i = 0; i < 3; ++i) {
90 r.gyro[i] = s.
gyro[i];
108 for (
int i = 0; i < 3; ++i) {
136 int32_t temp_c100, pressure_pa;
141 r.temp_c100 = temp_c100;
142 r.pressure_pa = pressure_pa;
158 uint32_t highg_edge_us, uint32_t now_us) {
193static uint32_t
until(uint32_t now, uint32_t t) {
194 int32_t d = (int32_t)(t - now);
195 return d > 0 ? (uint32_t)d : 0U;
199 return a <
b ?
a :
b;
int h3lis_power_down(const dev_bus_t *bus)
int h3lis_read(const dev_bus_t *bus, h3lis_sample_t *out)
int h3lis_init(const dev_bus_t *bus)
int ism330_init(const dev_bus_t *bus)
int ism330_power_down(const dev_bus_t *bus)
int ism330_read(const dev_bus_t *bus, ism330_sample_t *out)
int ms5611_read_adc(const dev_bus_t *bus, uint32_t *raw)
int ms5611_start(const dev_bus_t *bus, ms5611_conversion_t which)
int ms5611_read_prom(const dev_bus_t *bus, ms5611_prom_t *prom)
void ms5611_compensate(const ms5611_prom_t *prom, uint32_t d1, uint32_t d2, int32_t *temp_c100, int32_t *pressure_pa)
*brief create JSON pointer *sa reference_tokens const string_t const string_t & b
*brief create JSON pointer *sa reference_tokens const string_t & a
static void init_highg(sensors_core_t *c, uint32_t now_us)
static void init_baro(sensors_core_t *c, uint32_t now_us)
static void emit(sensors_core_t *c, uint8_t type, const void *data, uint8_t len)
static bool reached(uint32_t now, uint32_t t)
static void read_highg(sensors_core_t *c, uint32_t t_us, uint32_t now_us)
uint32_t sensors_core_wait_us(const sensors_core_t *c, uint32_t now_us)
void sensors_core_init(sensors_core_t *c, uint32_t now_us)
static void failed(sensors_device_t *d, int err, uint32_t now_us)
static uint32_t until(uint32_t now, uint32_t t)
void sensors_core_stop(sensors_core_t *c)
static void step_baro(sensors_core_t *c, uint32_t now_us)
static void read_imu(sensors_core_t *c, uint32_t t_us, uint32_t now_us)
static void init_imu(sensors_core_t *c, uint32_t now_us)
void sensors_core_step(sensors_core_t *c, uint32_t events, uint32_t imu_edge_us, uint32_t highg_edge_us, uint32_t now_us)
static void succeeded(sensors_device_t *d)
static uint32_t sooner(uint32_t a, uint32_t b)
#define SENSORS_BARO_STEP_US
#define SENSORS_MAX_ERRORS
#define SENSORS_HIGHG_PERIOD_US
#define SENSORS_IMU_PERIOD_US
void(* record)(void *ctx, uint8_t type, const void *data, uint8_t len)