PDK API Guide for J721E
csl_timer_mgr.h
Go to the documentation of this file.
1 
39 #ifndef CSL_TIMER_MGR_H_
40 #define CSL_TIMER_MGR_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include <stdint.h>
47 #include <stdbool.h>
48 #include <ti/csl/cslr_timer_mgr.h>
49 
134 typedef struct
135 {
136  CSL_timer_mgrRegs *pCfgRegs;
137  CSL_timer_mgr_timersRegs *pTimerRegs;
138  CSL_timer_mgr_oesRegs *pOesRegs;
140 
160 extern uint32_t CSL_timermgrGetRevision( const CSL_TimermgrCfg *pCfg );
161 
177 extern uint32_t CSL_timermgrGetMaxTimers( const CSL_TimermgrCfg *pCfg );
178 
195 extern int32_t CSL_timermgrSetMaxTimers( CSL_TimermgrCfg *pCfg, uint32_t maxTimers );
196 
216 extern int32_t CSL_timermgrSetTimerCnt( CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t timerCnt );
217 
231 extern int32_t CSL_timermgrSetTimerEnable( CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable );
232 
248 extern int32_t CSL_timermgrEnableAllTimers( CSL_TimermgrCfg *pCfg );
249 
265 extern void CSL_timermgrSetEnable( CSL_TimermgrCfg *pCfg, bool bEnable );
266 
280 extern int32_t CSL_timermgrIsTimerExpired( CSL_TimermgrCfg *pCfg, uint32_t timerNum );
281 
298 extern uint32_t CSL_timermgrGetExpiredTimers( CSL_TimermgrCfg *pCfg, uint32_t *pExpiredTimerNums );
299 
313 extern int32_t CSL_timermgrTouchTimer( CSL_TimermgrCfg *pCfg, uint32_t timerNum );
314 
324 extern uint32_t CSL_timermgrGetCurrCnt( const CSL_TimermgrCfg *pCfg );
325 
340 extern int32_t CSL_timermgrSetEventIdx( CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t eventIdx );
341 
355 extern int32_t CSL_timermgrGetEventIdx( CSL_TimermgrCfg *pCfg, uint32_t timerNum );
356 
372 extern int32_t CSL_timermgrEnableAutoReset( CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable );
373 
376 #ifdef __cplusplus
377 }
378 #endif
379 
380 #endif
int32_t CSL_timermgrEnableAutoReset(CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable)
Enable or disable the auto reset function for a timer.
int32_t CSL_timermgrTouchTimer(CSL_TimermgrCfg *pCfg, uint32_t timerNum)
Touch a timer.
int32_t CSL_timermgrIsTimerExpired(CSL_TimermgrCfg *pCfg, uint32_t timerNum)
Return expiration status for a timer.
CSL_timer_mgr_oesRegs * pOesRegs
Definition: csl_timer_mgr.h:138
int32_t CSL_timermgrSetEventIdx(CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t eventIdx)
Set the event index for a timer.
int32_t CSL_timermgrEnableAllTimers(CSL_TimermgrCfg *pCfg)
Enables all timers.
uint32_t CSL_timermgrGetExpiredTimers(CSL_TimermgrCfg *pCfg, uint32_t *pExpiredTimerNums)
Return a list of expired timers.
Timer Manager configuration.
Definition: csl_timer_mgr.h:134
int32_t CSL_timermgrGetEventIdx(CSL_TimermgrCfg *pCfg, uint32_t timerNum)
Get the event index for a timer.
uint32_t CSL_timermgrGetMaxTimers(const CSL_TimermgrCfg *pCfg)
Return maximum number of timers available or being monitored.
CSL_timer_mgrRegs * pCfgRegs
Definition: csl_timer_mgr.h:136
int32_t CSL_timermgrSetTimerEnable(CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable)
Enable or disable a specific timer.
uint32_t CSL_timermgrGetCurrCnt(const CSL_TimermgrCfg *pCfg)
Return the current timer_mgr counter value.
uint32_t CSL_timermgrGetRevision(const CSL_TimermgrCfg *pCfg)
Return revision of the timer_mgr module.
int32_t CSL_timermgrSetTimerCnt(CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t timerCnt)
Sets the counter value for a specific timer.
int32_t CSL_timermgrSetMaxTimers(CSL_TimermgrCfg *pCfg, uint32_t maxTimers)
Sets the maximum number of timers to be monitored.
CSL_timer_mgr_timersRegs * pTimerRegs
Definition: csl_timer_mgr.h:137
void CSL_timermgrSetEnable(CSL_TimermgrCfg *pCfg, bool bEnable)
Enable or disable the timer_mgr.