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;
3838 *
3939 * # Defined behaviour
4040 * * 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
4142 * * The function ::analogin_read reads the input voltage, represented as a float in the range [0.0 (GND), 1.0 (VCC)]
4243 * * The function ::analogin_read_u16 reads the value from analogin pin, represented as an unsigned 16bit value [0.0 (GND), MAX_UINT16 (VCC)]
4344 * * The accuracy of the ADC is +/- 10%
@@ -68,6 +69,13 @@ typedef struct analogin_s analogin_t;
6869 */
6970void analogin_init (analogin_t * obj , PinName pin );
7071
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+
7179/** Read the input voltage, represented as a float in the range [0.0, 1.0]
7280 *
7381 * @param obj The analogin object
You can’t perform that action at this time.
0 commit comments