no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
no_os_aout.h
Go to the documentation of this file.
1/***************************************************************************/
31
32#ifndef NO_OS_AOUT_H
33#define NO_OS_AOUT_H
34
35#include <stdint.h>
36
37
43 /* Min output range of DAC in volts */
45 /* Max output range of DAC in volts */
47 /* Analog output reference voltage */
48 float vref;
49 /* Analog extra parameters (device specific) */
50 void *extra;
51};
52
58 /* Min output value of DAC in volts */
60 /* Max output value of DAC in volts */
62 /* Analog output reference voltage */
63 float vref;
64 /* Analog extra parameters (device specific) */
65 void *extra;
66};
67
68/* Write analog output voltage */
69int32_t no_os_aout_set_voltage(struct no_os_aout_desc *desc, float value);
70
71/* Initialize the analog output peripheral */
72int32_t no_so_aout_init(struct no_os_aout_desc **desc,
73 const struct no_os_aout_init_param *param);
74
75/* Free the resources allocated by no_os_aout_init() */
76int32_t no_os_aout_remove(struct no_os_aout_desc *desc);
77
78#endif // end of NO_OS_AOUT_H
int32_t no_os_aout_remove(struct no_os_aout_desc *desc)
int32_t no_os_aout_set_voltage(struct no_os_aout_desc *desc, float value)
int32_t no_so_aout_init(struct no_os_aout_desc **desc, const struct no_os_aout_init_param *param)
Definition no_os_aout.h:57
float aout_max_v
Definition no_os_aout.h:61
float aout_min_v
Definition no_os_aout.h:59
void * extra
Definition no_os_aout.h:65
float vref
Definition no_os_aout.h:63
Definition no_os_aout.h:42
float aout_min_v
Definition no_os_aout.h:44
float aout_max_v
Definition no_os_aout.h:46
void * extra
Definition no_os_aout.h:50
float vref
Definition no_os_aout.h:48