no-OS
no_os_aout.h
Go to the documentation of this file.
1 /***************************************************************************/
38 #ifndef NO_OS_AOUT_H
39 #define NO_OS_AOUT_H
40 
41 /******************************************************************************/
42 /***************************** Include Files **********************************/
43 /******************************************************************************/
44 
45 #include <stdint.h>
46 
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 
51 /******************************************************************************/
52 /*************************** Types Declarations *******************************/
53 /******************************************************************************/
54 
60  /* Min output range of DAC in volts */
61  float aout_min_v;
62  /* Max output range of DAC in volts */
63  float aout_max_v;
64  /* Analog output reference voltage */
65  float vref;
66  /* Analog extra parameters (device specific) */
67  void *extra;
68 };
69 
75  /* Min output value of DAC in volts */
76  float aout_min_v;
77  /* Max output value of DAC in volts */
78  float aout_max_v;
79  /* Analog output reference voltage */
80  float vref;
81  /* Analog extra parameters (device specific) */
82  void *extra;
83 };
84 
85 /******************************************************************************/
86 /************************ Functions Declarations ******************************/
87 /******************************************************************************/
88 
89 /* Write analog output voltage */
90 int32_t no_os_aout_set_voltage(struct no_os_aout_desc *desc, float value);
91 
92 /* Initialize the analog output peripheral */
93 int32_t no_so_aout_init(struct no_os_aout_desc **desc,
94  const struct no_os_aout_init_param *param);
95 
96 /* Free the resources allocated by no_os_aout_init() */
97 int32_t no_os_aout_remove(struct no_os_aout_desc *desc);
98 
99 #endif // end of NO_OS_AOUT_H
no_os_aout_init_param::aout_max_v
float aout_max_v
Definition: no_os_aout.h:63
no_os_aout_init_param::aout_min_v
float aout_min_v
Definition: no_os_aout.h:61
no_os_aout_init_param::vref
float vref
Definition: no_os_aout.h:65
no_os_aout_desc::vref
float vref
Definition: no_os_aout.h:80
no_os_aout_remove
int32_t no_os_aout_remove(struct no_os_aout_desc *desc)
no_os_aout_set_voltage
int32_t no_os_aout_set_voltage(struct no_os_aout_desc *desc, float value)
no_os_aout_desc::aout_max_v
float aout_max_v
Definition: no_os_aout.h:78
no_os_aout_desc
Definition: no_os_aout.h:74
no_os_aout_desc::extra
void * extra
Definition: no_os_aout.h:82
no_so_aout_init
int32_t no_so_aout_init(struct no_os_aout_desc **desc, const struct no_os_aout_init_param *param)
no_os_aout_init_param::extra
void * extra
Definition: no_os_aout.h:67
no_os_aout_init_param
Definition: no_os_aout.h:59
no_os_aout_desc::aout_min_v
float aout_min_v
Definition: no_os_aout.h:76