ESP8266
Public Member Functions | Private Attributes | List of all members
ServoTimer1 Struct Reference

Public Member Functions

 ServoTimer1 ()
 
uint32_t usToTicks (uint32_t us) const
 
uint32_t ticksToUs (uint32_t ticks) const
 
void InitInterrupt (timercallback handler)
 
void ResetInterrupt ()
 
void StopInterrupt ()
 
void SetPulseCompare (uint32_t value)
 
void SetCycleCompare (uint32_t value)
 
uint32_t GetCycleCount () const
 
void StartCycle ()
 
int8_t getCurrentChannel () const
 
void nextChannel ()
 
void setEndOfCycle ()
 
bool isEndOfCycle () const
 
ServoTimerSequence timerId () const
 

Private Attributes

volatile uint32_t _cycleTicks
 
volatile int8_t _currentChannel
 

Constructor & Destructor Documentation

ServoTimer1::ServoTimer1 ( )

Member Function Documentation

int8_t ServoTimer1::getCurrentChannel ( ) const
uint32_t ServoTimer1::GetCycleCount ( ) const
void ServoTimer1::InitInterrupt ( timercallback  handler)
bool ServoTimer1::isEndOfCycle ( ) const
void ServoTimer1::nextChannel ( )
void ServoTimer1::ResetInterrupt ( )
void ServoTimer1::SetCycleCompare ( uint32_t  value)
void ServoTimer1::setEndOfCycle ( )
void ServoTimer1::SetPulseCompare ( uint32_t  value)
void ServoTimer1::StartCycle ( )
void ServoTimer1::StopInterrupt ( )
uint32_t ServoTimer1::ticksToUs ( uint32_t  ticks) const
ServoTimerSequence ServoTimer1::timerId ( ) const
uint32_t ServoTimer1::usToTicks ( uint32_t  us) const

Member Data Documentation

volatile int8_t ServoTimer1::_currentChannel
private
volatile uint32_t ServoTimer1::_cycleTicks
private