Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PwmIn Class Reference
PwmIn class to read PWM inputs. More...
#include <PwmIn.h>
Public Member Functions | |
PwmIn (PinName p) | |
Create a PwmIn. | |
float | period () |
Read the current period. | |
float | pulsewidth () |
Read the current pulsewidth. | |
float | dutycycle () |
Read the current dutycycle. |
Detailed Description
PwmIn class to read PWM inputs.
Uses InterruptIn to measure the changes on the input and record the time they occur
- Note:
- uses InterruptIn, so not available on p19/p20
Definition at line 13 of file PwmIn.h.
Constructor & Destructor Documentation
PwmIn | ( | PinName | p ) |
Member Function Documentation
float dutycycle | ( | ) |
float period | ( | ) |
Generated on Wed Jul 20 2022 07:28:50 by
