Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Functions
lampda::hal::serial Namespace Reference

Serial port HAL layer. More...

Functions

void init ()
 call once at program start
 
bool is_activated ()
 Return true if the serial port is active.
 
bool is_available ()
 Return true if a char is available to read.
 
char read ()
 Read a character (blocking)
 
size_t write (const char *const buffer, size_t bufferSize)
 Write a char buffer to the serial port.
 
uint16_t mtu_size ()
 Return the usable MTU size.
 

Detailed Description

Serial port HAL layer.

Function Documentation

◆ write()

size_t lampda::hal::serial::write ( const char *const  buffer,
size_t  bufferSize 
)

Write a char buffer to the serial port.

Parameters
[in]bufferBuffer containing the text to display
[in]bufferSizeSize of the buffer to display
Returns
the size of the written bytes