18 #ifndef BEAGLEBONE_PWM_PWMDEVICE_H
19 #define BEAGLEBONE_PWM_PWMDEVICE_H
24 #include "../interfaces/IDevice.h"
25 #include "../overlays/pinOverlay.h"
30 using namespace overlays;
67 Power_RunTime_Suspended
89 void set(
valType _vt,
long _val );
114 void readDevice(
valType _vt );
122 short readDevice(
size_t _bufferSize );
135 int connectToDevice() {
return 1; }
167 long getCurrentReading( valType _vt );
181 void setValType( valType _vt );
188 void setWriteVal(
long _val );
199 string currentReading;
209 char polarityPath[50];
211 char powerControlPath[100];
213 char powerRunTime_ActivePath[100];
215 char powerRunTime_SuspendedPath[100];
223 #endif //BEAGLEBONE_PWM_PWMDEVICE_H
pwmDevice()
Definition: pwmDevice.h:46
pinBlocks
Definition: overlayBase.h:43
Power_Control Value Type.
Definition: pwmDevice.h:65
Polarity Value Type.
Definition: pwmDevice.h:64
Definition: pinOverlay.h:32
Power_RunTime_Active Value Type.
Definition: pwmDevice.h:66
valType
Definition: pwmDevice.h:60
Definition: pwmOverlay.h:31
Run Value Type.
Definition: pwmDevice.h:61
Period Value Type.
Definition: pwmDevice.h:63
PWMPins pinNum
stores the PWM device pin num
Definition: pwmDevice.h:71
Definition: pwmDevice.h:38
Definition: aeronautics.h:23
string powerControlStr
stores the current power setting string
Definition: pwmDevice.h:73
Definition: pwmSetupException.h:17
pinBlocks blockNum
stores the PWM device block num
Definition: pwmDevice.h:70
Duty Value Type.
Definition: pwmDevice.h:62
PWMPins
PinNum refers to a exposed PWM Pin on your BBB, this enum can be expanded to include more if required...
Definition: overlayBase.h:51