Timer/Counter framework

yasimavr: Timer/Counter framework
yasimavr
Loading...
Searching...
No Matches
Timer/Counter framework

Classes

class  PrescaledTimer
 Generic model of a Timer with prescaling. More...
 
class  TimerCounter
 Generic model of a Counter. More...
 
struct  ArchAVR_TimerConfig
 Configuration structure for ArchAVR_Timer. More...
 
class  ArchAVR_Timer
 Timer/Counter model for AVR series. More...
 
struct  ArchXT_TimerAConfig
 Configuration structure for ArchXT_TimerA. More...
 
class  ArchXT_TimerA
 Implementation of a Timer/Counter type A for the XT core series. More...
 
struct  ArchXT_TimerBConfig
 Configuration structure for ArchXT_TimerB. More...
 
class  ArchXT_TimerB
 Implementation of a Timer/Counter type B for the XT core series. More...
 

Macros

#define AVR_CTLREQ_TCA_GET_EVENT_HOOK   (AVR_CTLREQ_BASE + 2)
 

Controller requests definition for ArchAVR_Timer

#define AVR_CTLREQ_TMR_GET_EXTCLK_HOOK   (AVR_CTLREQ_BASE + 1)
 
#define AVR_CTLREQ_TMR_GET_CAPT_HOOK   (AVR_CTLREQ_BASE + 2)
 

Controller requests definition for ArchXT_TimerA

#define AVR_CTLREQ_TCA_REGISTER_TCB   (AVR_CTLREQ_BASE + 1)
 

Detailed Description

Macro Definition Documentation

◆ AVR_CTLREQ_TCA_GET_EVENT_HOOK

#define AVR_CTLREQ_TCA_GET_EVENT_HOOK   (AVR_CTLREQ_BASE + 2)

Request for the event input hook for a timer type A. It returns with data as a pointer to a SignalHook instance.

◆ AVR_CTLREQ_TCA_REGISTER_TCB

#define AVR_CTLREQ_TCA_REGISTER_TCB   (AVR_CTLREQ_BASE + 1)

Request for a Timer type B to register with the timer type A. this is necessary for the TCB to use the same "clock" as the TCA.

◆ AVR_CTLREQ_TMR_GET_CAPT_HOOK

#define AVR_CTLREQ_TMR_GET_CAPT_HOOK   (AVR_CTLREQ_BASE + 2)

Request to obtain a pointer to the SignalHook entry point for event capture

◆ AVR_CTLREQ_TMR_GET_EXTCLK_HOOK

#define AVR_CTLREQ_TMR_GET_EXTCLK_HOOK   (AVR_CTLREQ_BASE + 1)

Request to obtain a pointer to the SignalHook entry point for external clock ticks