rtcount_isr
This function is the handler that is called whenever the Timer peripheral overflows. The handler increments the RTCounter overflow counter.
rtcount_initialize
This function sets the RTCounter ISR handler as the the interrupt handler for the timer. Must be called while GIE = 0
rtcount_getTickCount
This function returns the 32-bit total tick count of the timer. This means concatenating the hardware timer value to the overflow counter
rtcount_makeAbsolute
This function returns a number of ticks and returns the total number of timer ticks since the last overflow occurred or the timer module was started.
rtcount_sortedInsert
This function figures out where the specific timer will be placed on the queue.
rebase
This function adjusts the time base so that the timer can be in the lower half of the range
rtcount_create
This function adds a new timer to the list of serviced timers. The user supplies the memory for the timer and initializes it. This method simply updates absoluteTime and adds the timer to the list of serviced timers.
rtcount_reschedule
This function adds time to previous ticks. We add it to the previous target and not to current time to ensure the cadence of the timer will be exact and no skidding is possible.
rtcount_delete
This function cancels and removes a running timer
rtcount_callNextCallback
This function checks the list of expired timers and calls the first one in the list if the list is not empty. It also reschedules the timer if the callback returned a value greater than 0.It is recommended that this is called from the main superloop (while(1)) in your code but by design this can also be called from the timer ISR. If you wish callbacks to happen from the ISR context you can call this as the last action in timeout_isr instead.
rtcount_startTimer
This function is specifically used in Stopwatch mode for calculating the elapsed time in stopwatch mode. It will start a timer with maximum timeout length.
rtcount_stopTimer
This function will stop the running timer and return the number of ticks it counted.
rtcount_flushAll
This function cancels and removes all timers in the queue
rtcount_printList
This function prints the times for each of the timer for each timer on the queue.