![]() |
no-OS
|
Functions | |
int | ad5161_dpot_init (struct dpot_init_param *param, struct dpot_dev **desc) |
Initialize the ad5161 digital potentiometer. | |
int | ad5161_dpot_remove (struct dpot_dev *desc) |
Free the memory allocated by ad5161_dpot_init(). | |
int | ad5161_dpot_chn_write (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data) |
Write to the digital potentiometer channel. | |
int | ad5161_dpot_chn_read (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data) |
Read the ad5161 digital potentiometer channel. | |
int | ad5161_dpot_shutdown (struct dpot_dev *desc, enum dpot_chn_type chn, bool shutdown_enable) |
Shutdown the AD5161 digital potentiometer channel. | |
int | ad5161_dpot_set_mid_scale (struct dpot_dev *desc, enum dpot_chn_type chn, bool midscale_en) |
To set the the AD5161 to mid scale. | |
Variables | |
uint8_t | ad5161_dpot_cmd_addr [] |
const struct dpot_ops | ad5161_dpot_ops |
int ad5161_dpot_chn_read | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t * | data ) |
Read the ad5161 digital potentiometer channel.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be read. |
int ad5161_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 ad5161_dpot_init | ( | struct dpot_init_param * | param, |
struct dpot_dev ** | desc ) |
Initialize the ad5161 digital potentiometer.
param | - digipot init parameters. |
desc | - digipot descriptor. |
int ad5161_dpot_remove | ( | struct dpot_dev * | desc | ) |
Free the memory allocated by ad5161_dpot_init().
desc | - digipot descriptor. |
int ad5161_dpot_set_mid_scale | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
bool | midscale_en ) |
To set the the AD5161 to mid scale.
desc | - digipot descriptor. |
chn | - digipot channel. |
midscale_en | - To enable the set the device to mid scale. |
int ad5161_dpot_shutdown | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
bool | shutdown_enable ) |
Shutdown the AD5161 digital potentiometer channel.
desc | - digipot descriptor. |
chn | - digipot channel. |
shutdown_enable | - Shutdown enable status flag. |
uint8_t ad5161_dpot_cmd_addr[] |
@file ad5161.c @brief Source file for the ad5161 digital potentiometer drivers
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
const struct dpot_ops ad5161_dpot_ops |