![]() |
no-OS
|
Classes | |
struct | dpot_command_525x |
Macros | |
#define | AD5259_RDAC_READ_INSTRUCTION 0X00 |
#define | AD5259_EEPROM_READ_INSTRUCTION 0x20 |
#define | AD5259_RDAC_WRITE_INSTRUCTION 0X00 |
#define | AD5259_EEPROM_WRITE_INSTRUCTION 0x20 |
#define | AD5259_COPY_EEPROM_TO_RDAC_INSTRUCTION 0XA0 |
#define | AD5259_COPY_RDAC_TO_EEPROM_INSTRUCTION 0xC0 |
#define | AD5259_READ_TOLERANCE_INT_INSTRUCTION 0x3E |
#define | AD5259_READ_TOLERANCE_DEC_INSTRUCTION 0x3F |
Functions | |
int | ad5259_dpot_init (struct dpot_init_param *param, struct dpot_dev **desc) |
Initialize the ad5259 digital potentiometer. | |
int | ad5259_dpot_remove (struct dpot_dev *desc) |
Free the memory allocated by ad5259_dpot_init(). | |
int | ad5259_dpot_chn_read (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data) |
Read the ad5259 digital potentiometer channel. | |
int | ad5259_dpot_chn_write (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data) |
Write to the digital potentiometer channel. | |
int | ad5259_dpot_nvm_read (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data) |
Read the NVM (non-volatile) memory data. | |
int | ad5259_dpot_tolerance_read (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data) |
Read the NVM (non-volatile) memory data. | |
int | ad5259_dpot_nvm_write (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data) |
Write data to NVM (non-volatile) memory. | |
int | ad5259_dpot_copy_rdac_to_nvm (struct dpot_dev *desc, enum dpot_chn_type chn) |
Copy RDAC register to NVM/EEPROM. | |
int | ad5259_dpot_copy_nvm_to_rdac (struct dpot_dev *desc, enum dpot_chn_type chn) |
Copy NVM/EEPROM data to RDAC. | |
Variables | |
const struct dpot_ops | ad5259_dpot_ops |
#define AD5259_COPY_EEPROM_TO_RDAC_INSTRUCTION 0XA0 |
#define AD5259_COPY_RDAC_TO_EEPROM_INSTRUCTION 0xC0 |
#define AD5259_EEPROM_READ_INSTRUCTION 0x20 |
#define AD5259_EEPROM_WRITE_INSTRUCTION 0x20 |
#define AD5259_RDAC_READ_INSTRUCTION 0X00 |
#define AD5259_RDAC_WRITE_INSTRUCTION 0X00 |
#define AD5259_READ_TOLERANCE_DEC_INSTRUCTION 0x3F |
#define AD5259_READ_TOLERANCE_INT_INSTRUCTION 0x3E |
int ad5259_dpot_chn_read | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t * | data ) |
Read the ad5259 digital potentiometer channel.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be read. |
int ad5259_dpot_chn_write | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t | data ) |
Write to the digital potentiometer channel.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be written. |
int ad5259_dpot_copy_nvm_to_rdac | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn ) |
Copy NVM/EEPROM data to RDAC.
desc | - digipot descriptor. |
chn | - digipot channel. |
int ad5259_dpot_copy_rdac_to_nvm | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn ) |
Copy RDAC register to NVM/EEPROM.
desc | - digipot descriptor. |
chn | - digipot channel. |
int ad5259_dpot_init | ( | struct dpot_init_param * | param, |
struct dpot_dev ** | desc ) |
Initialize the ad5259 digital potentiometer.
param | - digipot init parameters. |
desc | - digipot descriptor. |
int ad5259_dpot_nvm_read | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t * | data ) |
Read the NVM (non-volatile) memory data.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - NVM data to be read. |
int ad5259_dpot_nvm_write | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t | data ) |
Write data to NVM (non-volatile) memory.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - NVM data to be written. |
int ad5259_dpot_remove | ( | struct dpot_dev * | desc | ) |
Free the memory allocated by ad5259_dpot_init().
desc | - digipot descriptor. |
int ad5259_dpot_tolerance_read | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t * | data ) |
Read the NVM (non-volatile) memory data.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - NVM data to be read. |
const struct dpot_ops ad5259_dpot_ops |