You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hal/analogout_api.h
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,32 @@ typedef struct dac_s dac_t;
35
35
36
36
/**
37
37
* \defgroup hal_analogout Analogout hal functions
38
+
*
39
+
* # Defined behaviour
40
+
* * The function ::analogout_init initializes the analogin peripheral
41
+
* * The function ::analogout_write sets the output voltage, specified as a percentage (float) in range [0.0, 1.0]
42
+
* * The function ::analogout_write_u16 sets the output voltage, specified as unsigned 16-bit value
43
+
* * The function ::analogout_read reads the current voltage value on the pin and returns a floating-point value representing the current voltage in range [0.0, 1.0]
44
+
* * The function ::analogout_read_u16 reads the current voltage value on the pin and returns the output voltage, specified as unsigned 16-bit value
45
+
* * The function ::analogout_free releases the analogout object
46
+
*
47
+
* # Undefined behaviour
48
+
*
49
+
* * ::analogout_init is called with invalid pin (which does not support analog output function)
50
+
* * Calling other functions before ::analogout_init
38
51
* @{
39
52
*/
40
53
54
+
/**
55
+
* \defgroup hal_analogin_tests Analogout hal tests
56
+
* The Analogout HAL tests ensure driver conformance to defined behaviour.
57
+
*
58
+
* To run the Analogout hal tests use the command:
59
+
*
60
+
* mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-analogout
0 commit comments