Go to the documentation of this file.
50 #define LTC2315_CS QUIKEVAL_CS
56 #define LTC2315_ADDRESS 0x00
59 #define LTC2312_READ_BYTES_NUMBER 2
60 #define LTC2312_READ_VALUES_NUMBER 100
106 float vref,
float *voltage);
device_type
Definition: ltc2312.h:72
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:118
Header file for iio_trigger.
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:95
Header file of SPI Interface.
int32_t ltc2312_setup(struct ltc2312_dev **device, struct ltc2312_init_param *init_param)
Definition: ltc2312.c:67
int32_t ltc2312_remove(struct ltc2312_dev *dev)
Definition: ltc2312.c:99
int32_t ltc2312_setup(struct ltc2312_dev **device, struct ltc2312_init_param *init_param)
Definition: ltc2312.c:67
int iio_trig_disable(void *trig)
Disable system interrupt which is linked to the given trigger.
Definition: iio_trigger.c:132
#define LTC2312_READ_VALUES_NUMBER
Definition: ltc2312.h:60
Header file of Delay functions.
Definition: ad9361_util.h:75
int32_t ltc2312_read(struct ltc2312_dev *dev, uint16_t *ptr_adc_code)
Definition: ltc2312.c:150
int32_t ltc2312_remove(struct ltc2312_dev *dev)
Definition: ltc2312.c:99
struct iio_trigger adc_iio_timer_trig_desc
Definition: iio_adc_demo_trig.c:67
int iio_sw_trig_handler(void *trig, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Handles the write request for trigger_now attribute.
Definition: iio_trigger.c:213
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
void ltc2312_code_to_voltage(struct ltc2312_dev *dev, uint16_t adc_code, float vref, float *voltage)
Definition: ltc2312.c:204
const char * name
Definition: iio_types.h:133
struct no_os_spi_init_param spi_init
Definition: ltc2312.h:88
int iio_trig_enable(void *trig)
Enable system interrupt which is linked to the given trigger.
Definition: iio_trigger.c:115
@ LTC2312_14
Definition: ltc2312.h:74
Structure holding pointers to show and store functions.
Definition: iio_types.h:131
Structure holding SPI descriptor.
Definition: no_os_spi.h:143
void ltc2312_code_to_voltage(struct ltc2312_dev *dev, uint16_t adc_code, float vref, float *voltage)
Definition: ltc2312.c:204
int32_t ltc2312_read(struct ltc2312_dev *dev, uint16_t *ptr_adc_code)
Definition: ltc2312.c:150
Definition: iio_types.h:231
enum device_type type
Definition: ltc2312.h:86
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
struct no_os_spi_desc * spi_desc
Definition: ltc2312.h:81
Header file of ADC Demo iio.
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:77
struct iio_trigger adc_iio_sw_trig_desc
Definition: iio_adc_demo_trig.c:61
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:51
bool is_synchronous
Definition: iio_types.h:234
@ LTC2312_12
Definition: ltc2312.h:73
#define LTC2312_READ_BYTES_NUMBER
Definition: ltc2312.h:59
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:121
enum device_type type
Definition: ltc2312.h:79