SDL API Guide for J721E
TOG Functions

Introduction

===========================================================================


Functions

int32_t SDL_TOG_getIntrCountInternal (uint32_t baseAddr, SDL_TOG_IntrSrc intrSrc, uint32_t *pIntrCnt)
 Read internal interrupt count. More...
 
int32_t SDL_TOG_setTimeoutVal (uint32_t baseAddr, uint32_t timeoutVal)
 Set the timeout value. More...
 
int32_t SDL_TOG_setIntrPending (uint32_t baseAddr, SDL_TOG_IntrSrc intrSrc)
 Set interrupt source(s) More...
 

Function Documentation

◆ SDL_TOG_getIntrCountInternal()

int32_t SDL_TOG_getIntrCountInternal ( uint32_t  baseAddr,
SDL_TOG_IntrSrc  intrSrc,
uint32_t *  pIntrCnt 
)

Read internal interrupt count.

This function reads the internal interrupt count.

Parameters
baseAddr[IN] Base address of the Timeout gasket registers
intrSrc[IN] Interrupt source(s) to set
pIntrCnt[OUT] Pointer to interrupt source count
Returns
SDL_PASS The function completed successfully SDL_EBADARGS baseAddr and timeoutVal are invalid

◆ SDL_TOG_setTimeoutVal()

int32_t SDL_TOG_setTimeoutVal ( uint32_t  baseAddr,
uint32_t  timeoutVal 
)

Set the timeout value.

This function sets the desired timeout value. Note the Timer runs on the VBUS clock and that determines the actual time.

Parameters
baseAddr[IN] Base address of the Timeout gasket registers
timeoutVal[IN] Timeout count value
Returns
SDL_PASS The function completed successfully SDL_EBADARGS baseAddr and timeoutVal are invalid

◆ SDL_TOG_setIntrPending()

int32_t SDL_TOG_setIntrPending ( uint32_t  baseAddr,
SDL_TOG_IntrSrc  intrSrc 
)

Set interrupt source(s)

This function allows software to set the specified interrupt source(s).

The intrSrcs value is composed of a logical OR of the desired interrupt sources defined in SDL_TOG_IntrSrc.

Parameters
baseAddr[IN] Base address of the Timeout gasket registers
intrSrc[IN] Interrupt source(s) to set
Returns
SDL_PASS The function completed successfully SDL_EBADARGS baseAddr and intrSrcs is invalid