digipot12 2.1.0.0
|
This file contains API for DIGI POT 12 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 | digipot12_t |
DIGI POT 12 Click context object. More... | |
struct | digipot12_cfg_t |
DIGI POT 12 Click configuration object. More... | |
Enumerations | |
enum | digipot12_return_value_t { DIGIPOT12_OK = 0 , DIGIPOT12_ERROR = -1 } |
DIGI POT 12 Click return value data. More... | |
Functions | |
void | digipot12_cfg_setup (digipot12_cfg_t *cfg) |
DIGI POT 12 configuration object setup function. | |
err_t | digipot12_init (digipot12_t *ctx, digipot12_cfg_t *cfg) |
DIGI POT 12 initialization function. | |
err_t | digipot12_default_cfg (digipot12_t *ctx) |
DIGI POT 12 default configuration function. | |
void | digipot12_device_enable (digipot12_t *ctx) |
DIGI POT 12 enable the device function. | |
void | digipot12_hw_reset (digipot12_t *ctx) |
DIGI POT 12 hardware reset function. | |
err_t | digipot12_write_data (digipot12_t *ctx, uint8_t ctrl, uint8_t addr, uint8_t data_in) |
DIGI POT 12 I2C writing function. | |
err_t | digipot12_read_data (digipot12_t *ctx, uint8_t addr, uint8_t mask, uint8_t *data_out) |
DIGI POT 12 I2C reading function. | |
err_t | digipot12_write_rdac (digipot12_t *ctx, uint8_t addr, uint8_t data_in) |
DIGI POT 12 write the RDAC function. | |
err_t | digipot12_read_rdac (digipot12_t *ctx, uint8_t addr, uint8_t *data_out) |
DIGI POT 12 read the RDAC function. | |
err_t | digipot12_set_wiper_1 (digipot12_t *ctx, uint8_t wiper_pos) |
DIGI POT 12 set wiper 1 function. | |
err_t | digipot12_set_wiper_2 (digipot12_t *ctx, uint8_t wiper_pos) |
DIGI POT 12 set wiper 2 function. | |
err_t | digipot12_set_resistance (digipot12_t *ctx, uint8_t wiper_sel, float res_kohm) |
DIGI POT 12 set the resistance function. | |
err_t | digipot12_get_resistance (digipot12_t *ctx, uint8_t wiper_sel, float *res_kohm) |
DIGI POT 12 get the resistance function. | |
This file contains API for DIGI POT 12 Click Driver.