no-OS
|
Device driver structure. More...
#include <ad7606.h>
Public Attributes | |
struct ad7606_axi_dev | axi_dev |
struct no_os_spi_desc * | spi_desc |
struct no_os_gpio_desc * | gpio_reset |
struct no_os_gpio_desc * | gpio_convst |
struct no_os_gpio_desc * | gpio_busy |
struct no_os_gpio_desc * | gpio_stby_n |
struct no_os_gpio_desc * | gpio_range |
struct no_os_gpio_desc * | gpio_os0 |
struct no_os_gpio_desc * | gpio_os1 |
struct no_os_gpio_desc * | gpio_os2 |
struct no_os_gpio_desc * | gpio_par_ser |
enum ad7606_device_id | device_id |
struct ad7606_oversampling | oversampling |
bool | sw_mode |
bool | parallel_interface |
bool | reg_mode |
enum ad7606_dout_format | max_dout_lines |
struct ad7606_config | config |
struct ad7606_digital_diag | digital_diag_enable |
uint8_t | num_channels |
double | scale_ch [AD7606_MAX_CHANNELS] |
enum ad7606_range_type | range_ch_type [AD7606_MAX_CHANNELS] |
int8_t | offset_ch [AD7606_MAX_CHANNELS] |
uint8_t | phase_ch [AD7606_MAX_CHANNELS] |
uint8_t | gain_ch [AD7606_MAX_CHANNELS] |
uint8_t | data [28] |
Device driver structure.
struct ad7606_axi_dev ad7606_dev::axi_dev |
AXI core device data
struct ad7606_config ad7606_dev::config |
Configuration register settings
uint8_t ad7606_dev::data[28] |
Data buffer (used internally by the SPI communication functions)
enum ad7606_device_id ad7606_dev::device_id |
Device ID
struct ad7606_digital_diag ad7606_dev::digital_diag_enable |
Digital diagnostics register settings
uint8_t ad7606_dev::gain_ch[AD7606_MAX_CHANNELS] |
Channel gain calibration
struct no_os_gpio_desc* ad7606_dev::gpio_busy |
BUSY GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_convst |
CONVST GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_os0 |
OS0 GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_os1 |
OS1 GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_os2 |
OS2 GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_par_ser |
PARn/SER GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_range |
RANGE GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_reset |
RESET GPIO descriptor
struct no_os_gpio_desc* ad7606_dev::gpio_stby_n |
STBYn GPIO descriptor
enum ad7606_dout_format ad7606_dev::max_dout_lines |
Number of DOUT lines supported by the device
uint8_t ad7606_dev::num_channels |
Number of input channels of the device
int8_t ad7606_dev::offset_ch[AD7606_MAX_CHANNELS] |
Channel offset calibration
struct ad7606_oversampling ad7606_dev::oversampling |
Oversampling settings
bool ad7606_dev::parallel_interface |
Serial interface mode or Parallel interface mode
uint8_t ad7606_dev::phase_ch[AD7606_MAX_CHANNELS] |
Channel phase calibration
enum ad7606_range_type ad7606_dev::range_ch_type[AD7606_MAX_CHANNELS] |
Channel type setting
bool ad7606_dev::reg_mode |
Whether the device is running in register or ADC reading mode
double ad7606_dev::scale_ch[AD7606_MAX_CHANNELS] |
Channel scale computed from channel range setting
struct no_os_spi_desc* ad7606_dev::spi_desc |
SPI descriptor
bool ad7606_dev::sw_mode |
Whether the device is running in hardware or software mode