File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ typedef struct analogin_s analogin_t;
38
38
*
39
39
* # Defined behaviour
40
40
* * The function ::analogin_init initializes the analogin_t control structure
41
+ * * The function ::analogin_free returns the pin owned by the Analogin object to its reset state
41
42
* * The function ::analogin_read reads the input voltage, represented as a float in the range [0.0 (GND), 1.0 (VCC)]
42
43
* * The function ::analogin_read_u16 reads the value from analogin pin, represented as an unsigned 16bit value [0.0 (GND), MAX_UINT16 (VCC)]
43
44
* * The accuracy of the ADC is +/- 10%
@@ -68,6 +69,13 @@ typedef struct analogin_s analogin_t;
68
69
*/
69
70
void analogin_init (analogin_t * obj , PinName pin );
70
71
72
+ /** Release the analogin peripheral
73
+ *
74
+ * Releases the pin used by analogin.
75
+ * @param obj The analogin object to initialize
76
+ */
77
+ void analogin_free (analogin_t * obj );
78
+
71
79
/** Read the input voltage, represented as a float in the range [0.0, 1.0]
72
80
*
73
81
* @param obj The analogin object
You can’t perform that action at this time.
0 commit comments