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... | |
Timeout interrupt sources | |
This is the SDL-FL API documentation for the VBUSM Slave Timeout Gasket module. The following procedure describes how to properly use this SDL-FL API:
| |
typedef uint32_t | SDL_TOG_IntrSrc |
This enumerator defines the possible timeout interrupt sources. More... | |
#define | SDL_TOG_INTRSRC_TRANSACTION_TIMEOUT ((uint32_t) 1U<<0) |
#define | SDL_TOG_INTRSRC_UNEXPECTED_RESPONSE ((uint32_t) 1U<<1) |
#define | SDL_TOG_INTRSRC_COMMAND_TIMEOUT ((uint32_t) 1U<<2) |
#define | SDL_TOG_INTRSRC_ALL (SDL_TOG_INTRSRC_TRANSACTION_TIMEOUT | SDL_TOG_INTRSRC_UNEXPECTED_RESPONSE | SDL_TOG_INTRSRC_COMMAND_TIMEOUT) |
#define SDL_TOG_INTRSRC_TRANSACTION_TIMEOUT ((uint32_t) 1U<<0) |
Transaction timeout
#define SDL_TOG_INTRSRC_UNEXPECTED_RESPONSE ((uint32_t) 1U<<1) |
Unexpected response
#define SDL_TOG_INTRSRC_COMMAND_TIMEOUT ((uint32_t) 1U<<2) |
Command timeout
#define SDL_TOG_INTRSRC_ALL (SDL_TOG_INTRSRC_TRANSACTION_TIMEOUT | SDL_TOG_INTRSRC_UNEXPECTED_RESPONSE | SDL_TOG_INTRSRC_COMMAND_TIMEOUT) |
All interrupt sources
typedef uint32_t SDL_TOG_IntrSrc |
This enumerator defines the possible timeout interrupt sources.
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.
baseAddr | [IN] Base address of the Timeout gasket registers |
intrSrc | [IN] Interrupt source(s) to set |
pIntrCnt | [OUT] Pointer to interrupt source count |
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.
baseAddr | [IN] Base address of the Timeout gasket registers |
timeoutVal | [IN] Timeout count value |
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.
baseAddr | [IN] Base address of the Timeout gasket registers |
intrSrc | [IN] Interrupt source(s) to set |