J722S MCU+ SDK  09.02.00
sdl_vim.h File Reference

Go to the source code of this file.

Data Structures

struct  SDL_vimStaticRegs_GRP
 This structure defines the group registers identified for VIM static registers. More...
 
struct  SDL_vimStaticRegs
 This structure defines the static register groups identified for VIM. More...
 

Macros

#define SDL_VIM_MAX_INTR_GROUPS   (32U)
 This enumerator defines the maximum interrupt groups in VIM. More...
 
#define SDL_VIM_NUM_INTRS_PER_GROUP   (32U)
 This enumerator defines the number of interrupts per group in VIM. More...
 
#define SDL_VIM_INTR_TYPE_LEVEL   ((uint32_t)0U)
 vim interrupt types More...
 
#define SDL_VIM_INTR_TYPE_PULSE   ((uint32_t)1U)
 
#define SDL_VIM_INTR_MAP_IRQ   ((uint32_t)0U)
 Output interrupt is mapped to IRQ. More...
 
#define SDL_VIM_INTR_MAP_FIQ   ((uint32_t)1U)
 Output interrupt is mapped to FIQ. More...
 
#define SDL_VIM_INTR_MAP_ALL   ((uint32_t)2U)
 Output interrupt is mapped to IRQ or FIQ. More...
 

Typedefs

typedef uint32_t SDL_VimIntrType
 This enumerator defines the possible interrupt types. Each source interrupt is either an active high level or active high pulse. More...
 
typedef uint32_t SDL_VimIntrMap
 This enumerator defines the possible output interrupt types. Each source interrupt can be configured to drive either the IRQ or FIQ output signal. More...
 

Functions

void SDL_VIM_setDedVectorAddr (SDL_vimRegs *pRegs, uint32_t dedVectorAddr)
 Set the DED interrupt vector address. More...
 
int32_t SDL_VIM_getDedVectorAddr (SDL_vimRegs *pRegs, uint32_t *pDedVectorAddr)
 Get the DED interrupt vector address. More...
 

Function Documentation

◆ SDL_VIM_setDedVectorAddr()

void SDL_VIM_setDedVectorAddr ( SDL_vimRegs pRegs,
uint32_t  dedVectorAddr 
)

Set the DED interrupt vector address.

This function sets the 32-bit interrupt vector address (the address must be 32-bit aligned) of an interrupt to be used if an uncorrectable double-bit error (DED) is detected in any of the interrupt vector addresses. If there is a DED, the pVectorAddr argument of the SDL_VIM_getActivePendingIntr function will be populated with the value in this field instead of their normal vector.

Parameters
pRegs[IN] Pointer to the SDL_vimRegs register structure
dedVectorAddr[IN] The 32-bit DED interrupt vector address

◆ SDL_VIM_getDedVectorAddr()

int32_t SDL_VIM_getDedVectorAddr ( SDL_vimRegs pRegs,
uint32_t *  pDedVectorAddr 
)

Get the DED interrupt vector address.

This function sets the 32-bit interrupt vector address (the address must be 32-bit aligned) of an interrupt to be used if an uncorrectable double-bit error (DED) is detected in any of the interrupt vector addresses. If there is a DED, the pVectorAddr argument of the SDL_VIM_getActivePendingIntr function will be populated with the value in this field instead of their normal vector.

Parameters
pRegs[IN] Pointer to the SDL_vimRegs register structure
pDedVectorAddr[OUT] Pointer to the 32-bit DED interrupt vector address
Returns
0 = Success SDL_ESYS_FAIL = Failure