adc8 2.0.0.0
|
This file contains API for ADC 8 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | adc8_t |
Click ctx object definition. More... | |
struct | adc8_cfg_t |
Click configuration structure definition. More... | |
struct | adc8_single_volt_t |
Single channel (volt) type. More... | |
struct | adc8_diff_volt_t |
Diff channel (volt) type. More... | |
Functions | |
void | adc8_cfg_setup (adc8_cfg_t *cfg) |
Config Object Initialization function. | |
ADC8_RETVAL | adc8_init (adc8_t *ctx, adc8_cfg_t *cfg) |
Initialization function. | |
void | adc8_default_cfg (adc8_t *ctx) |
Click Default Configuration function. | |
void | adc8_generic_write (adc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | adc8_generic_read (adc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | adc8_set_cfg_register (adc8_t *ctx, uint16_t cfg) |
Device configuration for measurement. | |
uint16_t | adc8_get_adc_value (adc8_t *ctx, uint8_t channel) |
Get ADC value on the channel. | |
float | adc8_get_voltage (adc8_t *ctx, uint8_t channel) |
Read Voltage in mV. | |
uint8_t | adc8_get_interrupt_state (adc8_t *ctx) |
Get interrupt pin state. | |
void | adc8_get_single_channel (adc8_t *ctx, adc8_single_volt_t *volt) |
Get [Package} Single channel voltage. | |
void | adc8_get_diff_channel (adc8_t *ctx, adc8_diff_volt_t *volt) |
Get [Package] Diff channel voltage. | |
This file contains API for ADC 8 Click driver.