📄 csl_intc.h
字号:
CSL_Status CSL_intcGetHwStatus (
CSL_IntcHandle hIntc,
CSL_IntcHwStatusQuery query,
void *response
);
/** ============================================================================
* @n@b CSL_intcGlobalEnable
*
* @b Description
* @n Globally enable interrupts.
* The API enables the global interrupt by manipulating the processor's
* global interrupt enable/disable flag. If the user wishes to restore
* the enable-state at a later point, they may store the current state
* using the parameter, which could be used with CSL_intcGlobalRestore(..).
* CSL_intcGlobalEnable(..) must be called from a privileged mode.
*
* @b Arguments
* @verbatim
prevState (Optional) Pointer to object that would store current
stateObject that contains information about previous state
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalEnable(NULL);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalEnable (
CSL_IntcGlobalEnableState * prevState
);
/** ============================================================================
* @n@b CSL_intcGlobalDisable
*
* @b Description
* @n Globally disable interrupts.
* The API disables the global interrupt by manipulating the processor's
* global interrupt enable/disable flag. If the user wishes to restore
* the enable-state at a later point, they may store the current state
* using the parameter, which could be used with CSL_intcGlobalRestore(..).
* CSL_intcGlobalDisable(..) must be called from a privileged mode.
*
* @b Arguments
* @verbatim
prevState (Optional) Pointer to object that would store current
stateObject that contains information about previous state
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalDisable(NULL);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalDisable (
CSL_IntcGlobalEnableState *prevState
);
/** ============================================================================
* @n@b CSL_intcGlobalRestore
*
* @b Description
* @n Restore global interrupt enable/disable to a previous state.
* The API restores the global interrupt enable/disable state to a previous
* state as recorded by the global-event-enable state passed as an argument.
* CSL_intcGlobalRestore(..) must be called from a privileged mode.
*
* @b Arguments
* @verbatim
prevState Object containing information about previous state
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcGlobalEnableState prevState;
CSL_intcGlobalRestore(prevState);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalRestore (
CSL_IntcGlobalEnableState prevState
);
/** ============================================================================
* @n@b CSL_intcGlobalNmiEnable
*
* @b Description
* @n This API enables global NMI
*
*
* @b Arguments
* @verbatim
None
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalNmiEnable();
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalNmiEnable (void);
/** ============================================================================
* @n@b CSL_intcGlobalExcepEnable
*
* @b Description
* @n This API enables global exception
*
*
* @b Arguments
* @verbatim
None
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalExcepEnable();
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalExcepEnable (void);
/** ============================================================================
* @n@b CSL_intcGlobalExtExcepEnable
*
* @b Description
* @n This API enables external exception
*
*
* @b Arguments
* @verbatim
None
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalExtExcepEnable();
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalExtExcepEnable (void);
/** ============================================================================
* @n@b CSL_intcGlobalExcepClear
*
* @b Description
* @n This API clears Global Exceptions
*
*
* @b Arguments
* @verbatim
exc Exception to be cleared NMI/SW/EXT/INT
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_intcGlobalExcepClear(exc);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcGlobalExcepClear (
CSL_IntcExcep exc
);
/* ============================================================================
* @n@b CSL_intcExcepAllEnable
*
* @b Description
* @n This API enables all exceptions
*
*
* @b Arguments
* @verbatim
excepMask Exception Mask
excVal Event Value
prevState Pre state information
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcExcepEn excepMask;
CSL_BitMask32 excVal;
CSL_IntcEventEnableState *prevState;
CSL_intcExcepAllEnable(excepMask, excVal, prevState);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcExcepAllEnable (
CSL_IntcExcepEn excepMask,
CSL_BitMask32 excVal,
CSL_BitMask32 *prevState
);
/* ============================================================================
* @n@b CSL_intcExcepAllDisable
*
* @b Description
* @n This API disables all exceptions
*
*
* @b Arguments
* @verbatim
excepMask Exception Mask
excVal Event Value
prevState Pre state informationT
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcExcepEn excepMask;
CSL_BitMask32 excVal;
CSL_IntcEventEnableState *prevState;
CSL_intcExcepAllDisable(excepMask, excVal, prevState);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcExcepAllDisable (
CSL_IntcExcepEn excepMask,
CSL_BitMask32 excVal,
CSL_BitMask32 *prevState
);
/* ============================================================================
* @n@b CSL_intcExcepAllRestore
*
* @b Description
* @n This API restores all exceptions
*
*
* @b Arguments
* @verbatim
excepMask Exception Mask 0/1/2/3
prevState BitMask to be restored
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcExcepEn excepMask;
CSL_IntcEventEnableState *prevState;
CSL_intcExcepAllRestore(excepMask, prevState);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcExcepAllRestore (
CSL_IntcExcepEn excepMask,
CSL_IntcGlobalEnableState restoreVal
);
/* ============================================================================
* @n@b CSL_intcExcepAllClear
*
* @b Description
* @n This API clears all exceptions
*
*
* @b Arguments
* @verbatim
excepMask Exception Mask
excVal Holder for the event bitmask to be cleared
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcExcepEn excepMask;
CSL_BitMask32 excVal;
CSL_intcExcepAllClear(excepMask, excVal);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcExcepAllClear (
CSL_IntcExcepEn excepMask,
CSL_BitMask32 excVal
);
/* ============================================================================
* @n@b CSL_intcExcepAllStatus
*
* @b Description
* @n This API is to get the exception status query
*
*
* @b Arguments
* @verbatim
excepMask Exception Mask
status status of exception
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcExcepEn excepMask;
CSL_BitMask32 *status;
CSL_intcExcepAllStatus(excepMask, status);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcExcepAllStatus (
CSL_IntcExcepEn excepMask,
CSL_BitMask32 *status
);
/* ============================================================================
* @n@b CSL_intcQueryDropStatus
*
* @b Description
* @n This API is to get the exception drop status query
*
*
* @b Arguments
* @verbatim
dropStat place holder for the drop status
@endverbatim
*
* <b> Return Value </b> CSL_Status
* @li CSL_SOK on success
*
* @b Example:
* @verbatim
CSL_IntcDropStatus *dropStat;
CSL_intcQueryDropStatus(dropStat);
@endverbatim
* =============================================================================
*/
CSL_Status CSL_intcQueryDropStatus (
CSL_IntcDropStatus *dropStat
);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -