pot
2.0.0.0
|
This file contains API for POT Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | pot_t |
Click ctx object definition. More... | |
struct | pot_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | POT_MAP_MIKROBUS(cfg, mikrobus) cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN ) |
#define | POT_RETVAL uint8_t |
#define | POT_OK 0x00 |
#define | POT_INIT_ERROR 0xFF |
Typedefs | |
typedef uint16_t | pot_data_t |
Analog data type. More... | |
Functions | |
void | pot_cfg_setup (pot_cfg_t *cfg) |
Config Object Initialization function. More... | |
POT_RETVAL | pot_init (pot_t *ctx, pot_cfg_t *cfg) |
Initialization function. More... | |
pot_data_t | pot_generic_read (pot_t *ctx) |
Generic read function. More... | |
This file contains API for POT Click driver.