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 = MIKROBUS( mikrobus, MIKROBUS_AN ) |
Enumerations | |
enum | pot_return_value_t { POT_OK = 0 , POT_ERROR = -1 } |
POT Click return value data. More... | |
Functions | |
void | pot_cfg_setup (pot_cfg_t *cfg) |
POT configuration object setup function. | |
err_t | pot_init (pot_t *ctx, pot_cfg_t *cfg) |
POT initialization function. | |
err_t | pot_read_an_pin_value (pot_t *ctx, uint16_t *data_out) |
POT read AN pin value function. | |
err_t | pot_read_an_pin_voltage (pot_t *ctx, float *data_out) |
POT read AN pin voltage level function. | |
This file contains API for POT Click driver.