digipot5 2.0.0.0
|
Functions | |
void | digipot5_cfg_setup (digipot5_cfg_t *cfg) |
Configuration Object Setup function. | |
digipot5_err_t | digipot5_init (digipot5_t *ctx, digipot5_cfg_t *cfg) |
Click Initialization function. | |
void | digipot5_reset (digipot5_t *ctx) |
Reset function. | |
void | digipot5_default_cfg (digipot5_t *ctx) |
Click Default Configuration function. | |
digipot5_err_t | digipot5_generic_write (digipot5_t *ctx, digipot5_reg_t reg_addr, uint16_t data_in) |
Generic Write function. | |
digipot5_err_t | digipot5_generic_read (digipot5_t *ctx, digipot5_reg_t reg_addr, uint16_t *data_out) |
Generic Read function. | |
digipot5_reg_t | digipot5_increment_wiper (digipot5_t *ctx, digipot5_reg_t reg_addr) |
Increment Wiper function. | |
digipot5_reg_t | digipot5_decrement_wiper (digipot5_t *ctx, digipot5_reg_t reg_addr) |
Decrement Wiper function. | |
void digipot5_cfg_setup | ( | digipot5_cfg_t * | cfg | ) |
Configuration Object Setup function.
cfg | Click configuration structure. |
@description This function initializes the click configuration structure to initial state.
digipot5_reg_t digipot5_decrement_wiper | ( | digipot5_t * | ctx, |
digipot5_reg_t | reg_addr ) |
Decrement Wiper function.
ctx | Click object. |
reg_addr | Address of wiper which will be decremented. |
@description This function allows the selected wiper to be decremented.
void digipot5_default_cfg | ( | digipot5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes a default configuration for the DIGI POT 5 click.
digipot5_err_t digipot5_generic_read | ( | digipot5_t * | ctx, |
digipot5_reg_t | reg_addr, | ||
uint16_t * | data_out ) |
Generic Read function.
ctx | Click object. |
reg_addr | Register address which from data be read. |
data_out | Memory where read data be stored. |
@description This function reads 9 bits wide data from the selected register.
digipot5_err_t digipot5_generic_write | ( | digipot5_t * | ctx, |
digipot5_reg_t | reg_addr, | ||
uint16_t | data_in ) |
Generic Write function.
ctx | Click object. |
reg_addr | Register address where data be written. |
data_in | Data to be written. |
@description This function writes 9 bits wide data to the selected register.
digipot5_reg_t digipot5_increment_wiper | ( | digipot5_t * | ctx, |
digipot5_reg_t | reg_addr ) |
Increment Wiper function.
ctx | Click object. |
reg_addr | Address of wiper which will be incremented. |
@description This function allows the selected wiper to be incremented.
digipot5_err_t digipot5_init | ( | digipot5_t * | ctx, |
digipot5_cfg_t * | cfg ) |
Click Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void digipot5_reset | ( | digipot5_t * | ctx | ) |
Reset function.
ctx | Click object. |
@description This function allows the device to be reset and put back to normal operation mode.