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