System Timer
UG0331 User Guide Revision 15.0 620
Control functions MSS_TIM1_load_immediate() Loads the value passed by the load_value
parameter into the Timer1 down-counter.
MSS_TIM1_load_background() Specify the value that will be reloaded into the
Timer1 down-counter the next time the counter
reaches zero.
MSS_TIM1_get_current_value() Returns the current value of the Timer1 down-
counter.
MSS_TIM1_start() The MSS_TIM1_start() function enables Timer1
MSS_TIM1_stop() The MSS_TIM1_stop() function disables Timer1
MSS_TIM2_load_immediate() Loads the value passed by the load_value
parameter into the Timer2 down-counter
MSS_TIM2_load_background() Specify the value that will be reloaded into the
Timer2 down-counter the next time the counter
reaches zero.
MSS_TIM2_get_current_value() Returns the current value of the Timer 2
down-counter.
MSS_TIM2_start() Enables Timer 2
MSS_TIM2_stop() Disables Timer 2
MSS_TIM64_load_immediate() Loads the values passed by the load_value_u and
load_value_l parameters into the 64-bit timer
down-counter
MSS_TIM64_load_background() Specify the 64-bit value that will be reloaded into
the 64-bit timer down-counter the next time the
counter reaches zero
MSS_TIM64_get_current_value() Read the current value of the 64-bit timer
down-counter.
MSS_TIM64_start() Enables the 64-bit timer
MSS_TIM64_stop() Disables the 64-bit timer
Interrupt control
functions
MSS_TIM1_enable_irq() Enable interrupt generation for Timer 1
MSS_TIM1_disable_irq() Disable interrupt generation for Timer 1
MSS_TIM1_clear_irq() Clear a pending interrupt from Timer 1
MSS_TIM2_enable_irq() Enable interrupt generation for Timer 2
MSS_TIM2_disable_irq() Disable interrupt generation for Timer 2
MSS_TIM2_clear_irq() Clear a pending interrupt from Timer 2
MSS_TIM64_enable_irq() Enable interrupt generation for the 64-bit timer
MSS_TIM64_disable_irq() Disable interrupt generation for the 64-bit timer
MSS_TIM64_clear_irq() Clear a pending interrupt from the 64-bit timer.
Table 615 • MSS Timer APIs (continued)
Category API Description and Usage