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