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

An analog output interface. More...

#include <IOutput.h>

Inheritance diagram for IOutput:

Public Member Functions

virtual ~IOutput ()=default
virtual float getValue ()=0
 Returns the last value written to this output.
virtual void setValue (float value)=0
 Writes a value to this output.

Detailed Description

An analog output interface.

Mainly exists so that PWMOutput can be mocked in unit tests.

Constructor & Destructor Documentation

◆ ~IOutput()

virtual IOutput::~IOutput ( )
virtualdefault

Member Function Documentation

◆ getValue()

virtual float IOutput::getValue ( )
pure virtual

Returns the last value written to this output.

Implemented in PWMOutput.

◆ setValue()

virtual void IOutput::setValue ( float value)
pure virtual

Writes a value to this output.

Parameters
valueThe floating-point value to set. Must be in the range [0, 1].

Implemented in PWMOutput.


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