adc9 2.0.0.0
|
This file contains API for ADC 9 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | adc9_t |
Click ctx object definition. More... | |
struct | adc9_rw_t |
Click wr object definition. More... | |
struct | adc9_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | adc9_cfg_setup (adc9_cfg_t *cfg) |
Config Object Initialization function. | |
ADC9_RETVAL | adc9_init (adc9_t *ctx, adc9_cfg_t *cfg) |
Initialization function. | |
void | adc9_default_cfg (adc9_t *ctx, adc9_rw_t *rw) |
Click Default Configuration function. | |
void | adc9_generic_transfer (adc9_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint8_t | adc9_write_fast_cmd (adc9_t *ctx, adc9_rw_t *rw) |
Write fast commands function. | |
uint8_t | adc9_write_u8 (adc9_t *ctx, adc9_rw_t *rw, uint8_t wr_data) |
Write byte function. | |
uint8_t | adc9_read_u8 (adc9_t *ctx, adc9_rw_t *rw, uint8_t *rd_data) |
Read byte function. | |
uint8_t | adc9_write_u16 (adc9_t *ctx, adc9_rw_t *rw, uint16_t wr_data) |
Write word function. | |
uint8_t | adc9_read_u16 (adc9_t *ctx, adc9_rw_t *rw, uint16_t *rd_data) |
Read word function. | |
uint8_t | adc9_write_u24 (adc9_t *ctx, adc9_rw_t *rw, uint32_t wr_data) |
Write 24-bit function. | |
uint8_t | adc9_read_u24 (adc9_t *ctx, adc9_rw_t *rw, uint32_t *rd_data) |
Read 24-bit function. | |
uint8_t | adc9_read_u32 (adc9_t *ctx, adc9_rw_t *rw, uint32_t *rd_data) |
Read 32-bit function. | |
uint8_t | adc9_irq_pin_state (adc9_t *ctx) |
Get IRQ pin state function. | |
uint8_t | adc9_read_def_adc (adc9_t *ctx, adc9_rw_t *rw, int32_t *rd_data) |
Read default adc format value function. | |
uint8_t | adc9_read_24_left_adc (adc9_t *ctx, adc9_rw_t *rw, int32_t *rd_data) |
Read left justified adc value function. | |
uint8_t | adc9_read_sign_adc (adc9_t *ctx, adc9_rw_t *rw, int32_t *adc_val) |
Read Sign and ADC value function. | |
uint8_t | adc9_read_chan_adc (adc9_t *ctx, adc9_rw_t *rw, int32_t *adc_val, uint8_t *chan) |
Read Channel and ADC value function. | |
float | adc9_volt_calc (adc9_t *ctx, int32_t adc_val, uint16_t v_ref, uint8_t gain) |
Calculate Voltage function. | |
This file contains API for ADC 9 Click driver.