digipot11 2.1.0.0
|
This file contains API for DIGI POT 11 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | digipot11_t |
DIGI POT 11 Click context object. More... | |
struct | digipot11_cfg_t |
DIGI POT 11 Click configuration object. More... | |
Macros | |
#define | DIGIPOT11_WIPER_SEL_A 0x11 |
DIGI POT 11 wiper selection setting. | |
#define | DIGIPOT11_WIPER_SEL_B 0x12 |
#define | DIGIPOT11_WIPER_SEL_BOTH 0x13 |
#define | DIGIPOT11_WIPER_FULL_SCALE 0xFF |
DIGI POT 11 Wiper setting. | |
#define | DIGIPOT11_WIPER_MID_SCALE 0x80 |
#define | DIGIPOT11_WIPER_ZERO_SCALE 0x00 |
#define | DIGIPOT11_U1_DEVICE_ADDRESS_A1A0_00 0x2C |
DIGI POT 11 device address setting. | |
#define | DIGIPOT11_U1_DEVICE_ADDRESS_A1A0_01 0x2D |
#define | DIGIPOT11_U1_DEVICE_ADDRESS_A1A0_10 0x2E |
#define | DIGIPOT11_U1_DEVICE_ADDRESS_A1A0_11 0x2F |
#define | DIGIPOT11_U2_DEVICE_ADDRESS_A1A0_00 0x28 |
#define | DIGIPOT11_U2_DEVICE_ADDRESS_A1A0_01 0x29 |
#define | DIGIPOT11_U2_DEVICE_ADDRESS_A1A0_10 0x2A |
#define | DIGIPOT11_U2_DEVICE_ADDRESS_A1A0_11 0x2B |
#define | DIGIPOT11_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | digipot11_return_value_t { DIGIPOT11_OK = 0 , DIGIPOT11_ERROR = -1 } |
DIGI POT 11 Click return value data. More... | |
Functions | |
void | digipot11_cfg_setup (digipot11_cfg_t *cfg) |
DIGI POT 11 configuration object setup function. | |
err_t | digipot11_init (digipot11_t *ctx, digipot11_cfg_t *cfg) |
DIGI POT 11 initialization function. | |
err_t | digipot11_set_u1_wiper (digipot11_t *ctx, uint8_t wiper_sel, uint8_t data_in) |
DIGI POT 11 set u1 wiper function. | |
err_t | digipot11_set_u2_wiper (digipot11_t *ctx, uint8_t wiper_sel, uint8_t data_in) |
DIGI POT 11 set u2 wiper function. | |
This file contains API for DIGI POT 11 Click Driver.