74 bool shutdown_enable);
int ad5165_dpot_send_cmd(struct dpot_dev *desc, struct dpot_command *cmd)
int ad5165_dpot_chn_write(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data)
Write to the digital potentiometer channel.
Definition ad5165.c:129
int ad5165_dpot_shutdown(struct dpot_dev *desc, enum dpot_chn_type chn, bool shutdown_enable)
int ad5165_dpot_init(struct dpot_init_param *init_params, struct dpot_dev **desc)
Initialize the ad5165 digital potentiometer.
Definition ad5165.c:44
int ad5165_dpot_remove(struct dpot_dev *desc)
Free the memory allocated by ad5165_dpot_init().
Definition ad5165.c:102
int ad5165_dpot_chn_read(struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data)
Read the ad5165 digital potentiometer channel.
Definition ad5165.c:156
dpot_chn_type
Digital potentiometer channel type.
Definition dpot.h:81
dpot_intf_type
digital potentiometer interface type.
Definition dpot.h:72
Header file of GPIO Interface.
Header file of I2C Interface.
Header file of SPI Interface.
Header file of utility functions.
ad5165 digital potentiometer device descriptor parameters.
Definition ad5165.h:55
enum dpot_intf_type intf_type
Definition ad5165.h:56
struct no_os_spi_desc * spi_desc
Definition ad5165.h:58
ad5165 digital potentiometer init parameters.
Definition ad5165.h:45
struct no_os_spi_init_param * spi_init
Definition ad5165.h:49
enum dpot_intf_type eIntfType
Definition ad5165.h:47
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
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128