Go to the source code of this file.
◆ ad5246_dpot_chn_read()
Read the ad5246 digital potentiometer channel.
- Parameters
-
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be read. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad5246_dpot_chn_write()
Write to the digital potentiometer channel.
- Parameters
-
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be written. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad5246_dpot_init()
Initialize the ad5246 digital potentiometer.
- Parameters
-
param | - digipot init parameters. |
desc | - digipot descriptor. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad5246_dpot_remove()
int ad5246_dpot_remove |
( |
struct dpot_dev * | desc | ) |
|
Free the memory allocated by ad5246_dpot_init().
- Parameters
-
desc | - digipot descriptor. |
- Returns
- 0 in case of success, negative error code otherwise.