no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
no_os_ain.h
Go to the documentation of this file.
1/***************************************************************************/
31
32#ifndef NO_OS_AIN_H
33#define NO_OS_AIN_H
34
35#include <stdint.h>
36
37
43 /* Analog input reference voltage */
44 float vref;
45 /* Analog extra parameters (device specific) */
46 void *extra;
47};
48
54 /* Analog input reference voltage */
55 float vref;
56 /* Analog extra parameters (device specific) */
57 void *extra;
58};
59
60/* Read analog input voltage */
61int32_t no_os_ain_get_voltage(struct no_os_ain_desc *desc, float *value);
62
63/* Initialize the analog input peripheral*/
64int32_t no_os_ain_init(struct no_os_ain_desc **desc,
65 const struct no_os_ain_init_param *param);
66
67/* Free the resources allocated by no_os_ain_init() */
68int32_t no_os_ain_remove(struct no_os_ain_desc *desc);
69
70#endif // end of NO_OS_AIN_H
int32_t no_os_ain_get_voltage(struct no_os_ain_desc *desc, float *value)
int32_t no_os_ain_remove(struct no_os_ain_desc *desc)
int32_t no_os_ain_init(struct no_os_ain_desc **desc, const struct no_os_ain_init_param *param)
Definition no_os_ain.h:53
void * extra
Definition no_os_ain.h:57
float vref
Definition no_os_ain.h:55
Definition no_os_ain.h:42
float vref
Definition no_os_ain.h:44
void * extra
Definition no_os_ain.h:46