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

The main encapsulating class containing our business logic. More...

#include <CatheterController.h>

Collaboration diagram for CatheterController:

Public Member Functions

 CatheterController (IHAL &hal, int inputPin1, int outputPin1, int inputPin2, int outputPin2, IDisplay &display)
void update ()
 Update both channels and display the output duty cycles.

Private Attributes

PotentiometerInput input1
PWMOutput output1
PotentiometerInput input2
PWMOutput output2
Channel channel1
Channel channel2
IDisplaydisplay

Detailed Description

The main encapsulating class containing our business logic.

Driven from main.cpp using the update method.

Constructor & Destructor Documentation

◆ CatheterController()

CatheterController::CatheterController ( IHAL & hal,
int inputPin1,
int outputPin1,
int inputPin2,
int outputPin2,
IDisplay & display )
Parameters
halA reference to the hardware abstraction layer
inputPin1The pin number of the input for channel 1
outputPin1The pin number of the output for channel 1
inputPin2The pin number of the input for channel 2
outputPin2The pin number of the output for channel 2
displayA reference to the display

Member Function Documentation

◆ update()

void CatheterController::update ( )

Update both channels and display the output duty cycles.

Member Data Documentation

◆ channel1

Channel CatheterController::channel1
private

◆ channel2

Channel CatheterController::channel2
private

◆ display

IDisplay& CatheterController::display
private

◆ input1

PotentiometerInput CatheterController::input1
private

◆ input2

PotentiometerInput CatheterController::input2
private

◆ output1

PWMOutput CatheterController::output1
private

◆ output2

PWMOutput CatheterController::output2
private

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