#include <pwmDevice.h>
Base class for PWM devices IDevice, pwmOverlay
This is a list of types allowed when accessing PWM Values.
Enumerator |
---|
Run |
Run Value Type.
|
Duty |
Duty Value Type.
|
Period |
Period Value Type.
|
Polarity |
Polarity Value Type.
|
Power_Control |
Power_Control Value Type.
|
Power_RunTime_Active |
Power_RunTime_Active Value Type.
|
Power_RunTime_Suspended |
Power_RunTime_Suspended Value Type.
|
Power_Control Value Type.
Definition: pwmDevice.h:65
Polarity Value Type.
Definition: pwmDevice.h:64
Power_RunTime_Active Value Type.
Definition: pwmDevice.h:66
Run Value Type.
Definition: pwmDevice.h:61
Period Value Type.
Definition: pwmDevice.h:63
Power_RunTime_Suspended Value Type.
Definition: pwmDevice.h:67
Duty Value Type.
Definition: pwmDevice.h:62
quadro::pwm::pwmDevice::pwmDevice |
( |
| ) |
|
|
inline |
Alternative constructor, setting the pins on setup.
- Exceptions
-
- Parameters
-
pinBlocks | _block |
PWNPins | _pin |
bool overlayLoaded
overlay Loaded switch
Definition: pwmOverlay.h:47
struct quadro::pwm::pwmOverlay::overlaySettings settings
struct quadro::overlays::pinOverlay::overlaySettings settings
Definition: pinOverlay.h:32
PWMPins pinNum
stores the PWM device pin num
Definition: pwmDevice.h:71
void setPinNum(PWMPins _pin)
Definition: pwmDevice.cpp:165
void setBlockNum(pinBlocks _block)
Definition: pwmDevice.cpp:167
pinBlocks blockNum
stores the PWM device block num
Definition: pwmDevice.h:70
bool overlayLoaded
Definition: pinOverlay.h:42
Use this method to get a pwm value as specified from valType
- Parameters
-
- Returns
109 {
return this->getCurrentReading( _vt ); }
void pwmDevice::set |
( |
valType |
_vt, |
|
|
long |
_val |
|
) |
| |
Use this method to set a pwm value as specified by valType
- Parameters
-
111 { this->writeToDevice( _vt, _val ); }
void pwmDevice::setBlockNum |
( |
pinBlocks |
_block | ) |
|
Sets the pwm block number - on the beaglebone black this will be 8 or 9 only
- Parameters
-
pinBlocks blockNum
stores the PWM device block num
Definition: pwmDevice.h:70
void pwmDevice::setPinNum |
( |
PWMPins |
_pin | ) |
|
Set PWM Pin num from available PWMPins
- Parameters
-
PWMPins pinNum
stores the PWM device pin num
Definition: pwmDevice.h:71
stores the PWM device block num
PWMPins quadro::pwm::pwmDevice::pinNum |
stores the PWM device pin num
string quadro::pwm::pwmDevice::powerControlStr |
stores the current power setting string
The documentation for this class was generated from the following files:
- /Users/michaelbrookes/ClionProjects/Quadro/lib/pwm/pwmDevice.h
- /Users/michaelbrookes/ClionProjects/Quadro/lib/pwm/pwmDevice.cpp