isoadc 2.1.0.0
|
This file contains API for ISO ADC 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 | isoadc_t |
ISO ADC Click context object. More... | |
struct | isoadc_cfg_t |
ISO ADC Click configuration object. More... | |
Macros | |
#define | ISOADC_VEXT_MIN 4.5f |
ISO ADC measurement setting. | |
#define | ISOADC_VEXT_5V 5.0f |
#define | ISOADC_VEXT_MAX 5.5f |
#define | ISOADC_ADC_RESOLUTION 65535 |
#define | ISOADC_ADC_FSR 320 |
#define | ISOADC_ADC_2FSR ( ISOADC_ADC_FSR * 2 ) |
#define | ISOADC_ADC_NUM_AVERAGES 65535 |
#define | ISOADC_VOLTAGE_NUM_AVERAGES 10 |
#define | ISOADC_TIMEOUT_COUNT 1000 |
#define | ISOADC_VOLTAGE_TO_CURRENT 0.1f |
#define | ISOADC_MILLI_TO_ONE 1000 |
#define | ISOADC_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | ISOADC_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | ISOADC_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | isoadc_return_value_t { ISOADC_OK = 0 , ISOADC_ERROR = -1 } |
ISO ADC Click return value data. More... | |
Functions | |
void | isoadc_cfg_setup (isoadc_cfg_t *cfg) |
ISO ADC configuration object setup function. | |
err_t | isoadc_init (isoadc_t *ctx, isoadc_cfg_t *cfg) |
ISO ADC initialization function. | |
err_t | isoadc_read_raw_adc (isoadc_t *ctx, uint16_t *data_out) |
ISO ADC read raw ADC function. | |
void | isoadc_set_vext (isoadc_t *ctx, float vext) |
ISO ADC set vext function. | |
err_t | isoadc_read_voltage (isoadc_t *ctx, float *voltage) |
ISO ADC read voltage function. | |
float | isoadc_get_current (float voltage) |
ISO ADC get current function. | |
float | isoadc_get_power (isoadc_t *ctx, float voltage) |
ISO ADC get power function. | |
This file contains API for ISO ADC Click Driver.