MHAA Serial Core v1.0.0
Nonblocking framed serial communication
Loading...
Searching...
No Matches
mhaa::serial::Serial Class Reference

Configures and polls one borrowed framed serial peripheral. More...

#include <serial.hpp>

Public Member Functions

 Serial (Peripheral &peripheral)
Status configure (const Config &config)
Status try_write (Frame frame)
Status try_read (Frame &frame)
bool transmission_complete () const

Detailed Description

Configures and polls one borrowed framed serial peripheral.

Definition at line 12 of file serial.hpp.

Constructor & Destructor Documentation

◆ Serial()

mhaa::serial::Serial::Serial ( Peripheral & peripheral)
inlineexplicit

Definition at line 15 of file serial.hpp.

Member Function Documentation

◆ configure()

Status mhaa::serial::Serial::configure ( const Config & config)
inline

Definition at line 17 of file serial.hpp.

◆ transmission_complete()

bool mhaa::serial::Serial::transmission_complete ( ) const
inline

Definition at line 29 of file serial.hpp.

◆ try_read()

Status mhaa::serial::Serial::try_read ( Frame & frame)
inline

Definition at line 28 of file serial.hpp.

◆ try_write()

Status mhaa::serial::Serial::try_write ( Frame frame)
inline

Definition at line 27 of file serial.hpp.


The documentation for this class was generated from the following file: