24 typedef unsigned char byte;
38 uint8_t sync_pin_, spi_bus_config_pin_, data_ready_pin_, spi_mode_;
39 uint8_t clock_divider_;
41 uint8_t bit_resolution_;
64 AdcSpi(uint8_t sync_pin, uint8_t spi_bus_config_pin,
65 uint8_t data_ready_pin, uint8_t bit_resolution,
66 uint8_t reset_pin=0, uint8_t clock_divider=7,
67 BitOrder bit_order=MSBFIRST, uint8_t spi_mode=SPI_MODE3);
91 uint8_t
ReadVoltage(uint8_t channel, byte previous_meas[],
bool send);
virtual spi_utils::Message ReadDataRegisterMessage(uint8_t channel=0)=0
virtual double BytesToVoltage(spi_utils::Message message)=0
double ReadVoltage(uint8_t channel=0)
Definition: adc.cpp:48
bool Begin(void)
Definition: adc.cpp:30
virtual spi_utils::Message SingleConversionModeMessage(uint8_t channel=0)=0