File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,29 @@ typedef struct analogin_s analogin_t;
35
35
36
36
/**
37
37
* \defgroup hal_analogin Analogin hal functions
38
+ *
39
+ * # Defined behaviour
40
+ * * The function ::analogin_init initializes the analogin peripheral
41
+ * * The function ::analogin_read reads the input voltage, represented as a float in the range [0.0, 1.0]
42
+ * * The function ::analogin_read_u16 reads the value from analogin pin, represented as an unsigned 16bit value
43
+ *
44
+ * # Undefined behaviour
45
+ *
46
+ * * ::analogin_init is called with invalid pin (which does not support analog input function)
47
+ * * Calling ::analogin_read, ::analogin_read_u16 before ::analogin_init
38
48
* @{
39
49
*/
40
50
51
+ /**
52
+ * \defgroup hal_analogin_tests Analogin hal tests
53
+ * The Analogin HAL tests ensure driver conformance to defined behaviour.
54
+ *
55
+ * To run the Analogin hal tests use the command:
56
+ *
57
+ * mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-analogin
58
+ *
59
+ */
60
+
41
61
/** Initialize the analogin peripheral
42
62
*
43
63
* Configures the pin used by analogin.
You can’t perform that action at this time.
0 commit comments