adc22 2.1.0.0
|
This file contains API for ADC 22 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | adc22_t |
ADC 22 Click context object. More... | |
struct | adc22_cfg_t |
ADC 22 Click configuration object. More... | |
Enumerations | |
enum | adc22_return_value_t { ADC22_OK = 0 , ADC22_ERROR = -1 } |
ADC 22 Click return value data. More... | |
enum | adc22_range_sel_t { ADC22_RANGE_BI_12V28 = 0x00 , ADC22_RANGE_BI_10V24 = 0x01 , ADC22_RANGE_BI_6V14 = 0x02 , ADC22_RANGE_BI_5V12 = 0x03 , ADC22_RANGE_BI_2V56 = 0x04 , ADC22_RANGE_12V28 = 0x08 , ADC22_RANGE_10V24 = 0x09 , ADC22_RANGE_6V14 = 0x0A , ADC22_RANGE_5V12 = 0x0B } |
ADC 22 Click ADC ranges selections. More... | |
Functions | |
void | adc22_cfg_setup (adc22_cfg_t *cfg) |
ADC 22 configuration object setup function. | |
err_t | adc22_init (adc22_t *ctx, adc22_cfg_t *cfg) |
ADC 22 initialization function. | |
err_t | adc22_default_cfg (adc22_t *ctx) |
ADC 22 default configuration function. | |
void | adc22_hw_reset (adc22_t *ctx) |
ADC 22 HW reset function. | |
uint8_t | adc22_get_interrupt (adc22_t *ctx) |
ADC 22 get interrupt function. | |
uint8_t | adc22_get_rvs (adc22_t *ctx) |
ADC 22 get RVS function. | |
err_t | adc22_write_reg (adc22_t *ctx, uint8_t w_cmd, uint8_t reg, uint8_t data_in) |
ADC 22 data writing function. | |
err_t | adc22_read_reg (adc22_t *ctx, uint8_t r_cmd, uint8_t reg, uint8_t *data_out) |
ADC 22 data reading function. | |
err_t | adc22_get_adc_raw_data (adc22_t *ctx, uint16_t *raw_adc) |
ADC 22 get ADC raw data function. | |
err_t | adc22_get_voltage (adc22_t *ctx, float *voltage) |
ADC 22 get voltage level function. | |
err_t | adc22_set_device_addr (adc22_t *ctx, uint8_t device_addr) |
ADC 22 set device address function. | |
err_t | adc22_get_device_id (adc22_t *ctx, uint8_t *device_id) |
ADC 22 get device ID function. | |
err_t | adc22_set_sdo_mode (adc22_t *ctx, uint8_t sdo_mode) |
ADC 22 set SDO mode function. | |
err_t | adc22_en_out_data_parity (adc22_t *ctx) |
ADC 22 enable output data parity function. | |
err_t | adc22_set_range (adc22_t *ctx, adc22_range_sel_t range) |
ADC 22 set range function. | |
err_t | adc22_get_range (adc22_t *ctx, uint8_t *range) |
ADC 22 get range function. | |
This file contains API for ADC 22 Click Driver.
enum adc22_range_sel_t |
ADC 22 Click ADC ranges selections.
Predefined enum values for driver ADC ranges selections.
enum adc22_return_value_t |