digipot6 2.0.0.0
|
Functions | |
void | digipot6_cfg_setup (digipot6_cfg_t *cfg) |
Config Object Initialization function. | |
DIGIPOT6_RETVAL | digipot6_init (digipot6_t *ctx, digipot6_cfg_t *cfg) |
Initialization function. | |
void | digipot6_default_cfg (digipot6_t *ctx) |
Click Default Configuration function. | |
void | digipot6_write_data (digipot6_t *ctx, uint8_t reg, uint8_t w_data) |
Write data function. | |
void | digipot6_write_wiper_cmd (digipot6_t *ctx, uint8_t cmd) |
Write wiper command function. | |
uint8_t | digipot6_read_data (digipot6_t *ctx, uint8_t reg) |
Read data function. | |
void | digipot6_set_resistor (digipot6_t *ctx, uint8_t state, uint8_t mask, uint8_t tcon) |
Set resistor function. | |
void digipot6_cfg_setup | ( | digipot6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void digipot6_default_cfg | ( | digipot6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for DIGI POT 6 click.
DIGIPOT6_RETVAL digipot6_init | ( | digipot6_t * | ctx, |
digipot6_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t digipot6_read_data | ( | digipot6_t * | ctx, |
uint8_t | reg ) |
Read data function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the specified register address.
void digipot6_set_resistor | ( | digipot6_t * | ctx, |
uint8_t | state, | ||
uint8_t | mask, | ||
uint8_t | tcon ) |
Set resistor function.
ctx | Click object. |
state | Resistor state. |
mask | Module mask. |
tcon | TCON module. |
@description This function reads data from the specified register address.
void digipot6_write_data | ( | digipot6_t * | ctx, |
uint8_t | reg, | ||
uint8_t | w_data ) |
Write data function.
ctx | Click object. |
reg | Register address. |
w_data | Write data. |
@description This function writes data to the specified address.
void digipot6_write_wiper_cmd | ( | digipot6_t * | ctx, |
uint8_t | cmd ) |
Write wiper command function.
ctx | Click object. |
cmd | Command. |
@description This function writes a wiper configuration command to the click module.