precision-converters-firmware
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad579x_iio
app
ad579x_support.h
Go to the documentation of this file.
1
/***************************************************************************/
13
#ifndef AD579X_SUPPORT_H
14
#define AD579X_SUPPORT_H
15
16
/******************************************************************************/
17
/***************************** Include Files **********************************/
18
/******************************************************************************/
19
20
#include <stdbool.h>
21
#include <stdint.h>
22
#include "ad5791.h"
23
24
/******************************************************************************/
25
/********************* Macros and Constants Definitions ***********************/
26
/******************************************************************************/
27
28
/* Mask for register address bits in the register */
29
#define AD579X_ADDRESS_MASK NO_OS_GENMASK(23, 20)
30
31
/******************************************************************************/
32
/********************** Variables and User Defined Data Types *****************/
33
/******************************************************************************/
34
35
/* Two different configuarations of the LDAC PIN */
36
enum
ad579x_ldac_pin_state
{
37
AD579x_LDAC_GPIO_OUTPUT
,
38
AD579x_LDAC_PWM
39
};
40
41
/******************************************************************************/
42
/********************** Public/Extern Declarations ****************************/
43
/******************************************************************************/
44
int
ad579x_reconfig_ldac
(
struct
ad5791_dev *
device
,
45
enum
ad579x_ldac_pin_state
pin_state);
46
47
#endif
/* AD579X_SUPPORT_H_ */
ad579x_ldac_pin_state
ad579x_ldac_pin_state
Definition
ad579x_support.h:36
AD579x_LDAC_GPIO_OUTPUT
@ AD579x_LDAC_GPIO_OUTPUT
Definition
ad579x_support.h:37
AD579x_LDAC_PWM
@ AD579x_LDAC_PWM
Definition
ad579x_support.h:38
ad579x_reconfig_ldac
int ad579x_reconfig_ldac(struct ad5791_dev *device, enum ad579x_ldac_pin_state pin_state)
Reconfigure LDAC pin as GPIO output.
Definition
ad579x_support.c:39
device
struct ad5933_dev * device
Definition
main.c:91
Generated by
1.9.8