adc4 2.0.0.0
|
This file contains API for ADC 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | adc4_t |
Click ctx object definition. More... | |
struct | adc4_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | adc4_cfg_setup (adc4_cfg_t *cfg) |
Config Object Initialization function. | |
ADC4_RETVAL | adc4_init (adc4_t *ctx, adc4_cfg_t *cfg) |
Initialization function. | |
void | adc4_default_cfg (adc4_t *ctx) |
Click Default Configuration function. | |
void | adc4_generic_transfer (adc4_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint8_t | adc4_write_reg (adc4_t *ctx, const uint8_t reg_address, uint8_t *value) |
Generic Write Function. | |
uint8_t | adc4_read_reg (adc4_t *ctx, const uint8_t reg_address, uint8_t *value) |
Generic Write Function. | |
void | adc4_reset (adc4_t *ctx) |
Reset function. | |
uint8_t | adc4_get_err_pin (adc4_t *ctx) |
Error check function. | |
void | adc4_get_config (adc4_t *ctx, uint8_t reg_address, uint16_t *value) |
Get configuration function. | |
void | adc4_set_config (adc4_t *ctx, const uint8_t reg_address, uint16_t value) |
Set configuration function. | |
uint32_t | adc4_get_data (adc4_t *ctx) |
Get data function. | |
uint16_t | adc4_get_voltage (adc4_t *ctx, const float ref_voltage) |
Get voltage function. | |
This file contains API for ADC 4 Click driver.