Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
Loading...
Searching...
No Matches
SerialDisplay Class Reference

An implementation of IDisplay that uses the HAL to write to the serial output. More...

#include <SerialDisplay.h>

Inheritance diagram for SerialDisplay:
Collaboration diagram for SerialDisplay:

Public Member Functions

 SerialDisplay (IHAL &hal)
void initialize () override
 Initialize the display.
void update (float channel1Power, float channel2Power) override
 Update the display with all relevant values.
Public Member Functions inherited from IDisplay
virtual ~IDisplay ()=default

Private Attributes

IHALhal
char string_buffer [128]

Detailed Description

An implementation of IDisplay that uses the HAL to write to the serial output.

Constructor & Destructor Documentation

◆ SerialDisplay()

SerialDisplay::SerialDisplay ( IHAL & hal)

Member Function Documentation

◆ initialize()

void SerialDisplay::initialize ( )
overridevirtual

Initialize the display.

In general, must be called before any calls to update.

Implements IDisplay.

◆ update()

void SerialDisplay::update ( float channel1Power,
float channel2Power )
overridevirtual

Update the display with all relevant values.

Parameters
channel1PowerThe output duty cycle for channel 1 (between 0 and 1)
channel2PowerThe output duty cycle for channel 2 (between 0 and 1)

Implements IDisplay.

Member Data Documentation

◆ hal

IHAL& SerialDisplay::hal
private

◆ string_buffer

char SerialDisplay::string_buffer[128]
private

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