pot3 2.0.0.0
|
This file contains API for Pot 3 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 | pot3_t |
Click ctx object definition. More... | |
struct | pot3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | POT3_MAP_MIKROBUS(cfg, mikrobus) |
#define | POT3_RETVAL uint8_t |
#define | POT3_OK 0x00 |
#define | POT3_INIT_ERROR 0xFF |
#define | POT3_VREF_2V 0 |
#define | POT3_VREF_3V3 1 |
Functions | |
void | pot3_cfg_setup (pot3_cfg_t *cfg) |
Config Object Initialization function. | |
POT3_RETVAL | pot3_init (pot3_t *ctx, pot3_cfg_t *cfg) |
Initialization function. | |
uint16_t | pot3_read_adc (pot3_t *ctx) |
ADC Read function | |
uint16_t | pot3_read_avg_adc (pot3_t *ctx, uint16_t n_samples) |
ADC Averaged Read function. | |
uint16_t | pot3_get_vout (pot3_t *ctx, uint8_t vref_sel, uint16_t n_samples) |
ADC Averaged Read function. | |
This file contains API for Pot 3 Click driver.