|
1 |
| -## Bare-metal APIs |
| 1 | +## Bare metal APIs |
| 2 | + |
| 3 | +Mbed OS bare metal supports the following APIs: |
| 4 | + |
2 | 5 | <h3 id="analog-i-o">Analog I/O</h3>
|
3 |
| -<ul><li>AnalogIn - Read the voltage applied to an analog input pin |
4 |
| -</li><li>AnalogOut - Set the voltage of an analog output pin |
5 |
| -</li></ul> |
| 6 | +- AnalogIn - Read the voltage applied to an analog input pin. |
| 7 | +- AnalogOut - Set the voltage of an analog output pin. |
| 8 | + |
6 | 9 | <h3 id="digital-i-o">Digital I/O</h3>
|
7 |
| -<ul><li>DigitalIn - Configure and control a digital input pin. |
8 |
| -</li><li>DigitalOut - Configure and control a digital output pin. |
9 |
| -</li><li>DigitalInOut - Bi-directional digital pins |
10 |
| -</li></ul> |
11 |
| -<ul><li>BusIn - Flexible way to read multiple DigitalIn pins as one value |
12 |
| -</li><li>BusOut - Flexible way to write multiple DigitalOut pins as one value |
13 |
| -</li><li>BusInOut - Flexible way to read/write multiple DigitalInOut pins as one value |
14 |
| -</li></ul> |
15 |
| -<ul><li>PortIn - Fast way to read multiple DigitalIn pins as one value |
16 |
| -</li><li>PortOut - Fast way to write multiple DigitalOut pins as one value |
17 |
| -</li><li>PortInOut - Fast way to read/write multiple DigitalInOut pins as one value |
18 |
| -</li></ul> |
19 |
| -<ul><li>PwmOut - Pulse-width modulated output |
20 |
| -</li></ul> |
21 |
| -<ul><li>InterruptIn - Trigger an event when a digital input pin changes. |
22 |
| -</li></ul> |
| 10 | +- DigitalIn - Configure and control a digital input pin. |
| 11 | +- DigitalOut - Configure and control a digital output pin. |
| 12 | +- DigitalInOut - Bidirectional digital pins. |
| 13 | + |
| 14 | +- BusIn - Flexible way to read multiple DigitalIn pins as one value. |
| 15 | +- BusOut - Flexible way to write multiple DigitalOut pins as one value. |
| 16 | +- BusInOut - Flexible way to read and write multiple DigitalInOut pins as one value. |
| 17 | + |
| 18 | +- PortIn - Fast way to read multiple DigitalIn pins as one value. |
| 19 | +- PortOut - Fast way to write multiple DigitalOut pins as one value. |
| 20 | +- PortInOut - Fast way to read and write multiple DigitalInOut pins as one value. |
| 21 | + |
| 22 | +- PwmOut - Pulse-width modulated output. |
| 23 | + |
| 24 | +- InterruptIn - Trigger an event when a digital input pin changes. |
| 25 | + |
23 | 26 | <h3 id="timers">Timers</h3>
|
24 |
| -<ul><li>Timer - Create, start, stop and read a timer |
25 |
| -</li><li>Timeout - Call a function after a specified delay |
26 |
| -</li><li>Ticker - Repeatedly call a function |
27 |
| -</li></ul> |
28 |
| -<ul><li>wait - Wait for a specified time |
29 |
| -</li><li>time - Get and set the realtime clock |
30 |
| -</li></ul> |
| 27 | +- Timer - Create, start, stop and read a timer. |
| 28 | +- Timeout - Call a function after a specified delay. |
| 29 | +- Ticker - Repeatedly call a function. |
| 30 | + |
| 31 | +- Wait - Wait for a specified time. |
| 32 | +- Time - Get and set the realtime clock. |
| 33 | + |
31 | 34 | <h3 id="digital-interfaces">Digital Interfaces</h3>
|
32 |
| -<ul><li>Serial - Serial/UART bus |
33 |
| -</li></ul> |
34 |
| -<ul><li>SPI - SPI bus master |
35 |
| -</li><li>SPISlave - SPI bus slave |
36 |
| -</li></ul> |
37 |
| -<ul><li>I2C - I²C bus master |
38 |
| -</li><li>I2CSlave - I²C bus slave |
39 |
| -</li></ul> |
40 |
| -<ul><li>CAN - Controller-area network bus |
41 |
| -</li></ul> |
| 35 | +- Serial - Serial/UART bus. |
| 36 | + |
| 37 | +- SPI - SPI bus master. |
| 38 | +- SPISlave - SPI bus slave. |
| 39 | + |
| 40 | +- I2C - I²C bus master. |
| 41 | +- I2CSlave - I²C bus slave. |
| 42 | + |
| 43 | +- CAN - Controller-area network bus. |
0 commit comments