Mistake on this page?
Report an issue in GitHub or email us

Bare metal APIs

Mbed OS bare metal supports the following APIs:

Analog I/O

  • AnalogIn - Read the voltage applied to an analog input pin.
  • AnalogOut - Set the voltage of an analog output pin.

Digital I/O

  • DigitalIn - Configure and control a digital input pin.

  • DigitalOut - Configure and control a digital output pin.

  • DigitalInOut - Bidirectional digital pins.

  • BusIn - Flexible way to read multiple DigitalIn pins as one value.

  • BusOut - Flexible way to write multiple DigitalOut pins as one value.

  • BusInOut - Flexible way to read and write multiple DigitalInOut pins as one value.

  • PortIn - Fast way to read multiple DigitalIn pins as one value.

  • PortOut - Fast way to write multiple DigitalOut pins as one value.

  • PortInOut - Fast way to read and write multiple DigitalInOut pins as one value.

  • PwmOut - Pulse-width modulated output.

  • InterruptIn - Trigger an event when a digital input pin changes.

Timers

  • Timer - Create, start, stop and read a timer.

  • Timeout - Call a function after a specified delay.

  • Ticker - Repeatedly call a function.

  • Wait - Wait for a specified time.

  • Time - Get and set the realtime clock.

Digital Interfaces

  • Serial - Serial/UART bus.

  • SPI - SPI bus master.

  • SPISlave - SPI bus slave.

  • I2C - I²C bus master.

  • I2CSlave - I²C bus slave.

  • CAN - Controller-area network bus.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.