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

A control channel from one input to one output. More...

#include <Channel.h>

Collaboration diagram for Channel:

Public Member Functions

 Channel (IInput &input, IOutput &output)
void update ()
 Read from the input and write to the output.
float getOutputValue ()
 Get the current output value duty cycle (between zero and one).

Private Attributes

IInputinput
IOutputoutput

Detailed Description

A control channel from one input to one output.

Constructor & Destructor Documentation

◆ Channel()

Channel::Channel ( IInput & input,
IOutput & output )
Parameters
inputThe input source (e.g., potentiometer)
outputThe output (e.g., a PWM pin)

Member Function Documentation

◆ getOutputValue()

float Channel::getOutputValue ( )

Get the current output value duty cycle (between zero and one).

◆ update()

void Channel::update ( )

Read from the input and write to the output.

Member Data Documentation

◆ input

IInput& Channel::input
private

◆ output

IOutput& Channel::output
private

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