isoadc2 2.0.0.0
|
This file contains API for ISO ADC 2 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 | isoadc2_t |
ISO ADC 2 Click context object. More... | |
struct | isoadc2_cfg_t |
ISO ADC 2 Click configuration object. More... | |
Macros | |
#define | ADC_MASK 0x0FFF |
ISO ADC 2 description setting. | |
#define | ADC_RES 4095 |
#define | VREF 2500 |
#define | ISOADC2_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | ISOADC2_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | ISOADC2_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | isoadc2_return_value_t { ISOADC2_OK = 0 , ISOADC2_ERROR = -1 } |
ISO ADC 2 Click return value data. More... | |
Functions | |
void | isoadc2_cfg_setup (isoadc2_cfg_t *cfg) |
ISO ADC 2 configuration object setup function. | |
err_t | isoadc2_init (isoadc2_t *ctx, isoadc2_cfg_t *cfg) |
ISO ADC 2 initialization function. | |
err_t | isoadc2_generic_write (isoadc2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
ISO ADC 2 data writing function. | |
err_t | isoadc2_generic_read (isoadc2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
ISO ADC 2 data reading function. | |
err_t | isoadc2_read_adc (isoadc2_t *ctx, uint16_t *adc_val) |
ISO ADC 2 ADC data reading function. | |
err_t | isoadc2_get_mv (isoadc2_t *ctx, uint16_t *voltage) |
ISO ADC 2 voltage data reading function. | |
This file contains API for ISO ADC 2 Click Driver.