Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
serial.h File Reference

Interface for the platform specific serial input output. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::hal
 Hardware Abstraction Layer, handle the platform specific interactions. Can be changed to support different platforms.
 
namespace  lampda::hal::serial
 Serial port HAL layer.
 

Functions

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

Detailed Description

Interface for the platform specific serial input output.