Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
Loading...
Searching...
No Matches
IDisplay Class Referenceabstract

An interface for displaying important values related to the system. More...

#include <IDisplay.h>

Inheritance diagram for IDisplay:

Public Member Functions

virtual ~IDisplay ()=default
virtual void initialize ()=0
 Initialize the display.
virtual void update (float channel1Power, float channel2Power)=0
 Update the display with all relevant values.

Detailed Description

An interface for displaying important values related to the system.

Currently, it supports displaying the duty cycle on each channel output.

Constructor & Destructor Documentation

◆ ~IDisplay()

virtual IDisplay::~IDisplay ( )
virtualdefault

Member Function Documentation

◆ initialize()

virtual void IDisplay::initialize ( )
pure virtual

Initialize the display.

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

Implemented in SerialDisplay, and TFTDisplay.

◆ update()

virtual void IDisplay::update ( float channel1Power,
float channel2Power )
pure virtual

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)

Implemented in SerialDisplay, and TFTDisplay.


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