Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
Loading...
Searching...
No Matches
CatheterController.h
Go to the documentation of this file.
1
4
5
#ifndef CATHER_CONTROLLER_H
6
#define CATHER_CONTROLLER_H
7
8
#include <
Channel.h
>
9
#include <
IDisplay.h
>
10
#include <
IHAL.h
>
11
#include <
PWMOutput.h
>
12
#include <
PotentiometerInput.h
>
13
18
class
CatheterController
{
19
private
:
20
PotentiometerInput
input1
;
21
PWMOutput
output1
;
22
PotentiometerInput
input2
;
23
PWMOutput
output2
;
24
Channel
channel1
;
25
Channel
channel2
;
26
IDisplay
&
display
;
27
28
public
:
37
CatheterController
(
38
IHAL
&
hal
,
int
inputPin1,
int
outputPin1,
int
inputPin2,
int
outputPin2,
39
IDisplay
&
display
40
);
41
45
void
update
();
46
};
47
48
#endif
// CATHER_CONTROLLER_H
Channel.h
IDisplay.h
IHAL.h
PWMOutput.h
PotentiometerInput.h
CatheterController::input2
PotentiometerInput input2
Definition
CatheterController.h:22
CatheterController::display
IDisplay & display
Definition
CatheterController.h:26
CatheterController::output2
PWMOutput output2
Definition
CatheterController.h:23
CatheterController::output1
PWMOutput output1
Definition
CatheterController.h:21
CatheterController::CatheterController
CatheterController(IHAL &hal, int inputPin1, int outputPin1, int inputPin2, int outputPin2, IDisplay &display)
Definition
CatheterController.cpp:5
CatheterController::input1
PotentiometerInput input1
Definition
CatheterController.h:20
CatheterController::channel1
Channel channel1
Definition
CatheterController.h:24
CatheterController::channel2
Channel channel2
Definition
CatheterController.h:25
CatheterController::update
void update()
Update both channels and display the output duty cycles.
Definition
CatheterController.cpp:13
Channel
A control channel from one input to one output.
Definition
Channel.h:14
IDisplay
An interface for displaying important values related to the system.
Definition
IDisplay.h:13
IHAL
A hardware abstraction layer interface.
Definition
IHAL.h:29
PWMOutput
The implementation of IOutput.
Definition
PWMOutput.h:14
PotentiometerInput
The implementation of IInput.
Definition
PotentiometerInput.h:14
hal
ArduinoHAL hal(BAUD_RATE)
lib
CatheterController
CatheterController.h
Generated by
1.16.1