const struct dpot_ops ad5143_dpot_ops
Definition ad5143.c:711
int ad5143_dpot_reset(struct dpot_dev *desc)
Reset the AD5143 digital potentiometer.
Definition ad5143.c:177
int ad5143_dpot_set_operating_mode(struct dpot_dev *desc, enum dpot_operating_mode operating_mode)
Set the AD5143 digital potentiometer operating mode.
Definition ad5143.c:249
int ad5143_dpot_init(struct dpot_init_param *init_params, struct dpot_dev **desc)
Initialize the AD5143 digital potentiometer.
Definition ad5143.c:77
int ad5143_dpot_remove(struct dpot_dev *desc)
Free the memory allocated by ad5143_dpot_init().
Definition ad5143.c:152
int ad5143_dpot_copy_rdac_to_nvm(struct dpot_dev *desc, enum dpot_chn_type chn)
Copy RDAC register to NVM/EEPROM.
Definition ad5143.c:536
int ad5143_dpot_shutdown(struct dpot_dev *desc, enum dpot_chn_type chn, bool shutdown_enable)
Shutdown the AD5143 digital potentiometer channel.
Definition ad5143.c:211
int ad5143_dpot_nvm_write(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data)
Write data to NVM (non-volatile) memory.
Definition ad5143.c:501
int ad5143_dpot_send_cmd(struct dpot_dev *desc, struct dpot_command *cmd)
Send command word to the AD5143 digital potentiometer.
Definition ad5143.c:672
int ad5143_dpot_input_reg_read(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data)
Read the AD5143 digital potentiometer input register.
Definition ad5143.c:298
int ad5143_dpot_chn_read(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data)
Read the AD5143 digital potentiometer channel.
Definition ad5143.c:398
int ad5143_dpot_rdac_6db_update(struct dpot_dev *desc, enum dpot_chn_type chn, enum dpot_rdac_6db_status status)
Perform RDAC 6dB increment/decrement.
Definition ad5143.c:638
int ad5143_dpot_nvm_read(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data)
Read the NVM (non-volatile) memory data.
Definition ad5143.c:466
int ad5143_dpot_rdac_linear_update(struct dpot_dev *desc, enum dpot_chn_type chn, enum dpot_rdac_linear_status status)
Perform RDAC linear increment/decrement.
Definition ad5143.c:602
int ad5143_dpot_sw_lrdac_update(struct dpot_dev *desc, enum dpot_chn_type chn)
Copy input register to RDAC (software LRDAC).
Definition ad5143.c:366
int ad5143_dpot_copy_nvm_to_rdac(struct dpot_dev *desc, enum dpot_chn_type chn)
Copy NVM/EEPROM data to RDAC.
Definition ad5143.c:570
int ad5143_dpot_chn_write(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data)
Write to the digital potentiometer channel.
Definition ad5143.c:433
int ad5143_dpot_input_reg_write(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data)
Write to the digital potentiometer input register.
Definition ad5143.c:333
dpot_operating_mode
Digital potentiometer operating mode.
Definition dpot.h:106
dpot_rdac_linear_status
Digital potentiometer RDAC linear update status.
Definition dpot.h:118
dpot_rdac_6db_status
Digital potentiometer RDAC 6dB update status.
Definition dpot.h:130
dpot_chn_type
Digital potentiometer channel type.
Definition dpot.h:81
Header file of I2C Interface.
Header file of utility functions.
AD5143 digital potentiometer device descriptor parameters.
Definition ad5143.h:60
bool shutdown_enable[4]
Definition ad5143.h:64
enum dpot_operating_mode operating_mode
Definition ad5143.h:66
struct no_os_i2c_desc * i2c_desc
Definition ad5143.h:62
AD5143 digital potentiometer init parameters.
Definition ad5143.h:44
bool shutdown_enable_lg[8]
Definition ad5143.h:50
bool shutdown_enable_pt[4]
Definition ad5143.h:48
enum dpot_operating_mode eoperating_mode
Definition ad5143.h:53
struct no_os_i2c_init_param * i2c_init
Definition ad5143.h:46
Digital potentiometer command structure.
Definition dpot.h:141
Digital potentiometer device descriptor parameters.
Definition dpot.h:175
Digital potentiometer init parameters.
Definition dpot.h:157
Digital potentiometer common APIs.
Definition dpot.h:188
Structure holding I2C address descriptor.
Definition no_os_i2c.h:89
Structure holding the parameters for I2C initialization.
Definition no_os_i2c.h:52