Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::communication::serial::TerminalSerialCallbackInterface Class Referenceabstract

#include <terminal_serial.hpp>

Inheritance diagram for tap::communication::serial::TerminalSerialCallbackInterface:

Public Member Functions

virtual bool terminalSerialCallback (char *inputLine, modm::IOStream &outputStream, bool streamingEnabled)=0
 
virtual void terminalSerialStreamCallback (modm::IOStream &outputStream)=0
 

Detailed Description

If you would like to interact with the terminal, extend this class and implement the callback.

Member Function Documentation

◆ terminalSerialCallback()

virtual bool tap::communication::serial::TerminalSerialCallbackInterface::terminalSerialCallback ( char *  inputLine,
modm::IOStream &  outputStream,
bool  streamingEnabled 
)
pure virtual
Parameters
[in]inputLineThe user input to be processed.
[out]outputStreamThe stream to write information to.
[in]streamingEnabledSet to true when the streaming is initially enabled. Subsequent interactions with the callback handler will be via terminalSerialStreamCallback until streaming has been disabled.
Returns
true if the inputLine was valid and was parsed correctly, false otherwise.

Implemented in tap::communication::sensors::imu::ImuTerminalSerialHandler, tap::control::SchedulerTerminalHandler, tap::motor::DjiMotorTerminalSerialHandler, and tap::errors::ErrorController.

◆ terminalSerialStreamCallback()

virtual void tap::communication::serial::TerminalSerialCallbackInterface::terminalSerialStreamCallback ( modm::IOStream &  outputStream)
pure virtual

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