PDK API Guide for J721E
csl_timer_mgr.h File Reference

Introduction

Header file containing various enumerations, structure definitions and function.

declarations for the timer_mgr IP.


(C) Copyright 2017-2018, Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorpotimermgred nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Go to the source code of this file.

Data Structures

struct  CSL_TimermgrCfg
 Timer Manager configuration. More...
 

Functions

uint32_t CSL_timermgrGetRevision (const CSL_TimermgrCfg *pCfg)
 Return revision of the timer_mgr module. More...
 
uint32_t CSL_timermgrGetMaxTimers (const CSL_TimermgrCfg *pCfg)
 Return maximum number of timers available or being monitored. More...
 
int32_t CSL_timermgrSetMaxTimers (CSL_TimermgrCfg *pCfg, uint32_t maxTimers)
 Sets the maximum number of timers to be monitored. More...
 
int32_t CSL_timermgrSetTimerCnt (CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t timerCnt)
 Sets the counter value for a specific timer. More...
 
int32_t CSL_timermgrSetTimerEnable (CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable)
 Enable or disable a specific timer. More...
 
int32_t CSL_timermgrEnableAllTimers (CSL_TimermgrCfg *pCfg)
 Enables all timers. More...
 
void CSL_timermgrSetEnable (CSL_TimermgrCfg *pCfg, bool bEnable)
 Enable or disable the timer_mgr. More...
 
int32_t CSL_timermgrIsTimerExpired (CSL_TimermgrCfg *pCfg, uint32_t timerNum)
 Return expiration status for a timer. More...
 
uint32_t CSL_timermgrGetExpiredTimers (CSL_TimermgrCfg *pCfg, uint32_t *pExpiredTimerNums)
 Return a list of expired timers. More...
 
int32_t CSL_timermgrTouchTimer (CSL_TimermgrCfg *pCfg, uint32_t timerNum)
 Touch a timer. More...
 
uint32_t CSL_timermgrGetCurrCnt (const CSL_TimermgrCfg *pCfg)
 Return the current timer_mgr counter value. More...
 
int32_t CSL_timermgrSetEventIdx (CSL_TimermgrCfg *pCfg, uint32_t timerNum, uint32_t eventIdx)
 Set the event index for a timer. More...
 
int32_t CSL_timermgrGetEventIdx (CSL_TimermgrCfg *pCfg, uint32_t timerNum)
 Get the event index for a timer. More...
 
int32_t CSL_timermgrEnableAutoReset (CSL_TimermgrCfg *pCfg, uint32_t timerNum, bool bEnable)
 Enable or disable the auto reset function for a timer. More...