NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
Public Member Functions | List of all members
nxpcup::SoftPWM Class Reference

#include <SoftPWM.h>

Public Member Functions

 SoftPWM (PinName _outpin, bool _positive=true)
 
 operator float ()
 
SoftPWMoperator= (float duty)
 
float read ()
 
void write (float duty)
 
void start ()
 
void stop ()
 
void period (float _period)
 
void period_ms (int _period)
 
void period_us (int _period)
 
void pulsewidth (float _width)
 
void pulsewidth_ms (int _width)
 
void pulsewidth_us (int _width)
 

Constructor & Destructor Documentation

nxpcup::SoftPWM::SoftPWM ( PinName  _outpin,
bool  _positive = true 
)
inline

Member Function Documentation

nxpcup::SoftPWM::operator float ( )
inline
SoftPWM& nxpcup::SoftPWM::operator= ( float  duty)
inline
void nxpcup::SoftPWM::period ( float  _period)
inline
void nxpcup::SoftPWM::period_ms ( int  _period)
inline
void nxpcup::SoftPWM::period_us ( int  _period)
inline
void nxpcup::SoftPWM::pulsewidth ( float  _width)
inline
void nxpcup::SoftPWM::pulsewidth_ms ( int  _width)
inline
void nxpcup::SoftPWM::pulsewidth_us ( int  _width)
inline
float nxpcup::SoftPWM::read ( )
inline
void nxpcup::SoftPWM::start ( )
inline
void nxpcup::SoftPWM::stop ( )
inline
void nxpcup::SoftPWM::write ( float  duty)
inline

The documentation for this class was generated from the following file: