|
TR-mbed 1.0
|
#include <PwmIn.h>
Public Member Functions | |
| PwmIn (PinName p) | |
| float | period () |
| float | pulsewidth () |
| float | dutycycle () |
Protected Member Functions | |
| void | rise () |
| void | fall () |
Protected Attributes | |
| InterruptIn | _p |
| Timer | _t |
| float | _pulsewidth |
| float | _period |
PwmIn class to read PWM inputs
Uses InterruptIn to measure the changes on the input and record the time they occur
| PwmIn::PwmIn | ( | PinName | p | ) |
Create a PwmIn
| p | The pwm input pin (must support InterruptIn) |
| float PwmIn::dutycycle | ( | ) |
Read the current dutycycle
|
protected |
| float PwmIn::period | ( | ) |
Read the current period
| float PwmIn::pulsewidth | ( | ) |
Read the current pulsewidth
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |