This module contains the Low-Level APIs to program and use the MTOG module.
◆ SDL_MTOG_VAL_1K
#define SDL_MTOG_VAL_1K ((uint32_t) 0U) |
◆ SDL_MTOG_VAL_4K
#define SDL_MTOG_VAL_4K ((uint32_t) 1U) |
◆ SDL_MTOG_VAL_16K
#define SDL_MTOG_VAL_16K ((uint32_t) 2U) |
◆ SDL_MTOG_VAL_64K
#define SDL_MTOG_VAL_64K ((uint32_t) 3U) |
◆ SDL_MTOG_VAL_256K
#define SDL_MTOG_VAL_256K ((uint32_t) 4U) |
◆ SDL_MTOG_VAL_1M
#define SDL_MTOG_VAL_1M ((uint32_t) 5U) |
◆ SDL_MTOG_VAL_2M
#define SDL_MTOG_VAL_2M ((uint32_t) 6U) |
◆ SDL_MTOG_VAL_4M_MINUS_1
#define SDL_MTOG_VAL_4M_MINUS_1 ((uint32_t) 7U) |
◆ SDL_INSTANCE_WKUP_MTOG0
#define SDL_INSTANCE_WKUP_MTOG0 1U |
◆ SDL_INSTANCE_MAIN_MTOG0
#define SDL_INSTANCE_MAIN_MTOG0 2U |
◆ SDL_INSTANCE_MTOG_MAX
◆ SDL_MTOGVal
◆ SDL_MTOG_Inst
◆ SDL_MTOG_setTimeoutVal()
Set the timeout value.
This function sets the desired timeout value. This function should only be called when the timeout is disabled.
- Parameters
-
pRegs | [IN] Pointer to the desired VBUSM Master Timeout Gasket Control register |
timeOut | [IN] Timeout count value. See SDL_MTOGVal for a list of valid timeout values. |
- Returns
- SDL_PASS Function completed successfully SDL_EFAIL Timeout value cannot be set when the timeout counter is running. Call SDL_MTOG_reset first. SDL_EBADARGS pRegs is NULL
◆ SDL_MTOG_getBaseaddr()
int32_t SDL_MTOG_getBaseaddr |
( |
SDL_MTOG_Inst |
instance, |
|
|
uint32_t * |
baseAddr |
|
) |
| |
This API is used to get the base address of the instance.
- Parameters
-
instance | TOG instance |
baseAddr | Base address of the instance. |
- Returns
- status return the base address of the instance. SDL_PASS: success SDL_EBADARGS: failure, indicate translation failed