volatile uint8_t rx_buf[4]
static void ms5611_spi_read(struct Ms5611_Spi *ms)
convenience function to trigger new measurement.
volatile uint8_t tx_buf[1]
void ms5611_spi_start_conversion(struct Ms5611_Spi *ms)
SPI transaction structure.
void ms5611_spi_event(struct Ms5611_Spi *ms)
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
MS5611 barometer driver common interface (I2C and SPI).
struct spi_periph * spi_p
int32_t prom_cnt
number of bytes read from PROM
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t addr, bool_t is_ms5607)
bool_t initialized
config done flag
void ms5611_spi_periodic_check(struct Ms5611_Spi *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
struct spi_transaction spi_trans
void ms5611_spi_start_configure(struct Ms5611_Spi *ms)
volatile bool_t data_available
data ready flag
static void ms5611_spi_periodic(struct Ms5611_Spi *ms)
convenience function
bool_t is_ms5607
TRUE if MS5607, FALSE if MS5611.