![]() |
no-OS
|
#include "../common/dpot.h"
#include "no_os_spi.h"
#include "no_os_i2c.h"
#include "no_os_gpio.h"
#include "no_os_util.h"
Go to the source code of this file.
Classes | |
struct | ad5165_dpot_init_param |
ad5165 digital potentiometer init parameters. More... | |
struct | ad5165_dpot_dev |
ad5165 digital potentiometer device descriptor parameters. More... | |
Functions | |
int | ad5165_dpot_init (struct dpot_init_param *init_params, struct dpot_dev **desc) |
Initialize the ad5165 digital potentiometer. | |
int | ad5165_dpot_remove (struct dpot_dev *desc) |
Free the memory allocated by ad5165_dpot_init(). | |
int | ad5165_dpot_chn_read (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t *data) |
Read the ad5165 digital potentiometer channel. | |
int | ad5165_dpot_chn_write (struct dpot_dev *desc, enum dpot_chn_type chn, uint8_t data) |
Write to the digital potentiometer channel. | |
int | ad5165_dpot_send_cmd (struct dpot_dev *desc, struct dpot_command *cmd) |
int | ad5165_dpot_shutdown (struct dpot_dev *desc, enum dpot_chn_type chn, bool shutdown_enable) |
int ad5165_dpot_chn_read | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
uint8_t * | data ) |
Read the ad5165 digital potentiometer channel.
desc | - digipot descriptor. |
chn | - digipot channel. |
data | - Channel data to be read. |
int ad5165_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 ad5165_dpot_init | ( | struct dpot_init_param * | param, |
struct dpot_dev ** | desc ) |
Initialize the ad5165 digital potentiometer.
param | - digipot init parameters. |
desc | - digipot descriptor. |
int ad5165_dpot_remove | ( | struct dpot_dev * | desc | ) |
Free the memory allocated by ad5165_dpot_init().
desc | - digipot descriptor. |
int ad5165_dpot_send_cmd | ( | struct dpot_dev * | desc, |
struct dpot_command * | cmd ) |
int ad5165_dpot_shutdown | ( | struct dpot_dev * | desc, |
enum dpot_chn_type | chn, | ||
bool | shutdown_enable ) |