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

Public Member Functions

 ServoTimer0 ()
 
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 _cycleStart
 
volatile int8_t _currentChannel
 

Constructor & Destructor Documentation

ServoTimer0::ServoTimer0 ( )

Member Function Documentation

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

Member Data Documentation

volatile int8_t ServoTimer0::_currentChannel
private
volatile uint32_t ServoTimer0::_cycleStart
private