79 1.0f, 2.0f, 4.0f, 8.0f, 16.0f, 32.0f, 64.0f, 128.0f
149 #define ADS1220_BUFFER_LEN 5
enum Ads1220ConvMode conv
conversion mode
void ads1220_configure(struct Ads1220 *ads)
enum Ads1220Imux i2mux
IDAC routing 2.
volatile bool data_available
data ready flag
enum Ads1220Mux mux
input multiplexer
SPI transaction structure.
volatile uint8_t rx_buf[ADS1220_BUFFER_LEN]
receive buffer
void ads1220_read(struct Ads1220 *ads)
struct spi_transaction spi_trans
spi transaction
struct spi_periph * spi_p
spi peripheral
struct Ads1220Config config
configuration
void ads1220_event(struct Ads1220 *ads)
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
enum Ads1220Gain gain
gain
ADS1220 configuration options.
#define ADS1220_BUFFER_LEN
bool pga_bypass
bypass PGA (PGA enabled = 0)
enum Ads1220VRef vref
voltage ref
enum Ads1220SampleRate rate
data output rate
static void ads1220_periodic(struct Ads1220 *ads)
convenience function: read or start configuration if not already initialized
enum Ads1220ConfStatus status
config status
static const float Ads1220GainTable[]
uint32_t data
raw ADC value
enum Ads1220Idac idac
IDAC config.
void ads1220_init(struct Ads1220 *ads, struct spi_periph *spi_p, uint8_t slave_idx)
enum Ads1220Imux i1mux
IDAC routing 1.
volatile uint8_t tx_buf[ADS1220_BUFFER_LEN]
transmit buffer
Paparazzi fixed point algebra.