adc24 2.1.0.0
|
This file contains API for ADC 24 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 | adc24_t |
ADC 24 Click context object. More... | |
struct | adc24_cfg_t |
ADC 24 Click configuration object. More... | |
struct | adc24_ctrl_t |
ADC 24 Click control object. More... | |
Enumerations | |
enum | adc24_return_value_t { ADC24_OK = 0 , ADC24_ERROR = -1 } |
ADC 24 Click return value data. More... | |
Functions | |
void | adc24_cfg_setup (adc24_cfg_t *cfg) |
ADC 24 configuration object setup function. | |
err_t | adc24_init (adc24_t *ctx, adc24_cfg_t *cfg) |
ADC 24 initialization function. | |
err_t | adc24_generic_write (adc24_t *ctx, uint16_t control) |
ADC 24 data writing function. | |
err_t | adc24_generic_read (adc24_t *ctx, uint16_t *data_out) |
ADC 24 data reading function. | |
err_t | adc24_get_adc_data (adc24_t *ctx, adc24_ctrl_t ctrl, uint8_t *in_pos, uint16_t *adc_data) |
ADC 24 get ADC data function. | |
err_t | adc24_get_voltage (adc24_t *ctx, adc24_ctrl_t ctrl, uint8_t *in_pos, float *voltage) |
ADC 24 get voltage level function. | |
This file contains API for ADC 24 Click Driver.
enum adc24_return_value_t |