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
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:159
Header file of SPI Interface.
int32_t ltc2312_setup(struct ltc2312_dev **device, struct ltc2312_init_param *init_param)
Definition: ltc2312.c:68
int32_t ltc2312_remove(struct ltc2312_dev *dev)
Definition: ltc2312.c:100
int32_t ltc2312_setup(struct ltc2312_dev **device, struct ltc2312_init_param *init_param)
Definition: ltc2312.c:68
#define LTC2312_READ_VALUES_NUMBER
Definition: ltc2312.h:60
Header file of Delay functions.
Definition: ad9361_util.h:69
int32_t ltc2312_read(struct ltc2312_dev *dev, uint16_t *ptr_adc_code)
Definition: ltc2312.c:151
int32_t ltc2312_remove(struct ltc2312_dev *dev)
Definition: ltc2312.c:100
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
void ltc2312_code_to_voltage(struct ltc2312_dev *dev, uint16_t adc_code, float vref, float *voltage)
Definition: ltc2312.c:205
struct no_os_spi_init_param spi_init
Definition: ltc2312.h:88
@ LTC2312_14
Definition: ltc2312.h:74
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
void ltc2312_code_to_voltage(struct ltc2312_dev *dev, uint16_t adc_code, float vref, float *voltage)
Definition: ltc2312.c:205
int32_t ltc2312_read(struct ltc2312_dev *dev, uint16_t *ptr_adc_code)
Definition: ltc2312.c:151
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
enum device_type type
Definition: ltc2312.h:86
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
struct no_os_spi_desc * spi_desc
Definition: ltc2312.h:81
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:116
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:52
@ 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:140
enum device_type type
Definition: ltc2312.h:79