36 #include "pprzlink/messages.h"
39 #ifndef MS5611_SPI_DEV
40 #define MS5611_SPI_DEV spi1
43 #ifndef MS5611_SLAVE_IDX
44 #define MS5611_SLAVE_IDX SPI_SLAVE0
106 #ifdef SENSOR_SYNC_SEND
Main include for ABI (AirBorneInterface).
#define BARO_MS5611_SENDER_ID
#define BARO_MS5611_SIGMA2
bool baro_ms5611_alt_valid
struct Ms5611_Spi baro_ms5611
void baro_ms5611_periodic_check(void)
void baro_ms5611_init(void)
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
void baro_ms5611_send_coeff(void)
void baro_ms5611_event(void)
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
uint32_t pressure
pressure in Pascal (0.01mbar)
int32_t temperature
temperature with 0.01 degrees Celsius resolution
void ms5611_spi_event(struct Ms5611_Spi *ms)
void ms5611_spi_periodic_check(struct Ms5611_Spi *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t slave_idx, bool is_ms5607)
bool initialized
config done flag
volatile bool data_available
data ready flag
static void ms5611_spi_read(struct Ms5611_Spi *ms)
convenience function to trigger new measurement.
Paparazzi atmospheric pressure conversion utilities.
Architecture independent timing functions.
volatile uint32_t nb_sec
full seconds since startup
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.