precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cn0586_support.h
Go to the documentation of this file.
1/*************************************************************************/
12#ifndef AD5754R_SUPPORT_H
13#define AD5754R_SUPPORT_H
14
15/******************************************************************************/
16/***************************** Include Files **********************************/
17/******************************************************************************/
18#include <stdint.h>
19#include "app_config.h"
20/******************************************************************************/
21/********************** Macros and Constants Definition ***********************/
22/******************************************************************************/
23
24/******************************************************************************/
25/********************** Variables and User Defined Data Types *****************/
26/******************************************************************************/
38
48
53struct cn0586_dev {
54 /* Converter Descriptor */
55 struct ad5754r_dev *dev;
56 /* HVOUT State */
57 bool state;
58 /* HVOUT Range */
60 /* HVOUT volts */
62};
63
64/******************************************************************************/
65/********************** Public/Extern Declarations ****************************/
66/******************************************************************************/
67int32_t cn0586_init(struct cn0586_dev **dev,
68 struct ad5754r_dev *ad5754r_device);
69
70int32_t cn0586_set_hvout_range(struct cn0586_dev *dev, enum cn0586_range range);
71
72int32_t cn0586_set_hvout_volts(struct cn0586_dev *dev, float volts);
73
74int32_t cn0586_get_hvout_volts(struct cn0586_dev *dev);
75
76#endif /* CN0586_SUPPORT_H */
int32_t cn0586_get_hvout_volts(struct cn0586_dev *dev)
Get HVOUT volts for the CFTL.
Definition cn0586_support.c:189
cn0586_range
CN0586 HVOUT Range options.
Definition cn0586_support.h:31
@ HVOUT_M50V_50V
Definition cn0586_support.h:34
@ NUM_OF_HVOUT_RANGES
Definition cn0586_support.h:36
@ HVOUT_0V_200V
Definition cn0586_support.h:35
@ HVOUT_0V_100V
Definition cn0586_support.h:32
@ HVOUT_M100V_100V
Definition cn0586_support.h:33
int32_t cn0586_set_hvout_range(struct cn0586_dev *dev, enum cn0586_range range)
Set HVOUT range for the CFTL.
Definition cn0586_support.c:234
cn0586_hvout_state
CN0586 HVOUT State options.
Definition cn0586_support.h:43
@ HVOUT_ENABLED
Definition cn0586_support.h:45
@ HVOUT_DISABLED
Definition cn0586_support.h:44
@ NUM_OF_HVOUT_STATES
Definition cn0586_support.h:46
int32_t cn0586_set_hvout_volts(struct cn0586_dev *dev, float volts)
Set HVOUT volts for the CFTL.
Definition cn0586_support.c:101
int32_t cn0586_init(struct cn0586_dev **dev, struct ad5754r_dev *ad5754r_device)
Initialize the CFTL. Power up channels A, B, D.
Definition cn0586_support.c:48
Configuration file of nanodac firmware example program.
cn0586 CFTL structure.
Definition cn0586_support.h:53
bool state
Definition cn0586_support.h:57
float hvout_volts
Definition cn0586_support.h:61
enum cn0586_range range
Definition cn0586_support.h:59
struct ad5754r_dev * dev
Definition cn0586_support.h:55