adc2
2.0.0.0
|
This file contains API for ADC 2 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 | adc2_t |
Click ctx object definition. More... | |
struct | adc2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | ADC2_MAP_MIKROBUS(cfg, mikrobus) |
#define | ADC2_RETVAL uint8_t |
#define | ADC2_OK 0x00 |
#define | ADC2_INIT_ERROR 0xFF |
#define | ADC2_INTERRUPT_FLAG -4000000 |
#define | ADC2_OVERFLOW_HIGH_FLAG 3000000 |
#define | ADC2_OVERFLOW_LOW_FLAG -3000000 |
Functions | |
void | adc2_cfg_setup (adc2_cfg_t *cfg) |
Config Object Initialization function. More... | |
ADC2_RETVAL | adc2_init (adc2_t *ctx, adc2_cfg_t *cfg) |
Initialization function. More... | |
void | adc2_generic_transfer (adc2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
uint32_t | adc2_read_4bytes (adc2_t *ctx) |
Data read function. More... | |
uint32_t | adc2_adc_value_read (adc2_t *ctx) |
Read ADC value function. More... | |
uint8_t | adc2_check_over_low (adc2_t *ctx) |
Check over low bit function. More... | |
uint8_t | adc2_check_over_high (adc2_t *ctx) |
Check over high bit function. More... | |
This file contains API for ADC 2 Click driver.