pot2 2.0.0.0
pot2.h File Reference

This file contains API for POT 2 Click driver. More...

#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  pot2_t
 Click ctx object definition. More...
 
struct  pot2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define POT2_MAP_MIKROBUS(cfg, mikrobus)    cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
 

Functions

void pot2_cfg_setup (pot2_cfg_t *cfg)
 Config Object Initialization function.
 
err_t pot2_init (pot2_t *ctx, pot2_cfg_t *cfg)
 Initialization function.
 
err_t pot2_read_adc (pot2_t *ctx, uint16_t *data_out)
 Generic read function.
 
err_t pot2_read_pin_voltage (pot2_t *ctx, float *data_out)
 Generic read function.
 

Detailed Description

This file contains API for POT 2 Click driver.