no-OS
Loading...
Searching...
No Matches
ad5161.h
Go to the documentation of this file.
1/***************************************************************************/
32#ifndef AD5161_H_
33#define AD5161_H_
34
35#include "../common/dpot.h"
36#include "no_os_spi.h"
37#include "no_os_i2c.h"
38#include "no_os_gpio.h"
39#include "no_os_util.h"
40
41/* Control word for READ and WRITE to AD5161*/
42#define AD5161_CTL_FOR_READ_WRITE 0x00
43/* Control word for placing the AD5161 in shutdown condition*/
44#define AD5161_CTL_FOR_EN_SHUTWOWN 0x20
45/* Control word for placing the AD5161 in normal condition*/
46#define AD5161_CTL_FOR_DIS_SHUTWOWN 0x80
47/* Control word for placing the AD5161 in reset state(mid range ) */
48#define AD5161_CTL_FOR_RESET_POSITION 0x40
49
55 /* Interface type */
57 /* SPI init parameters */
59 /* I2C init parameters */
61 /* Digital interface select GPIO init parameters */
63};
64
65
66
73 /* I2C descriptor */
75
77 /* Digital interface select GPIO descriptor */
79};
80#endif // ad5161_H_
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.
ad5161 digital potentiometer device descriptor parameters.
Definition ad5161.h:71
struct no_os_spi_desc * spi_desc
Definition ad5161.h:76
struct no_os_gpio_desc * dis_gpio_desc
Definition ad5161.h:78
enum dpot_intf_type intf_type
Definition ad5161.h:72
struct no_os_i2c_desc * i2c_desc
Definition ad5161.h:74
ad516x digital potentiometer init parameters.
Definition ad5161.h:54
enum dpot_intf_type eintf_type
Definition ad5161.h:56
struct no_os_i2c_init_param * i2c_init
Definition ad5161.h:60
struct no_os_gpio_init_param * dis_gpio_init
Definition ad5161.h:62
struct no_os_spi_init_param * spi_init
Definition ad5161.h:58
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding I2C address descriptor.
Definition no_os_i2c.h:89
Structure holding the parameters for I2C initialization.
Definition no_os_i2c.h:52
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128