codeair_drivers – CodeAIR Drivers¶
CodeAIR Drivers Module
Provides low-level hardware access and utilities for the CodeAIR platform.
-
codeair.codeair_drivers.console_bytes(data)[source]¶ Write raw binary data to the console.
- Parameters
data (bytes) – The binary data to write.
-
codeair.codeair_drivers.debug_uart_config(baudrate)[source]¶ Configure the debug UART port.
- Parameters
baudrate (int) – The baud rate for the UART.
-
codeair.codeair_drivers.debug_uart_in()[source]¶ Receive data from the debug UART port.
- Returns
The received data, or an empty bytes object if no data is available.
- Return type
-
codeair.codeair_drivers.debug_uart_out(text)[source]¶ Send text to the debug UART port.
- Parameters
text (str) – The text to send.
-
codeair.codeair_drivers.runtime_us()[source]¶ Get the runtime in microseconds since the system started.
- Returns
The runtime in microseconds.
- Return type