NHS31xx SW API

Detailed Description

Functions

static void NVIC_EnableIRQ (IRQn_Type IRQn)
 
static void NVIC_DisableIRQ (IRQn_Type IRQn)
 
static uint32_t NVIC_GetPendingIRQ (IRQn_Type IRQn)
 
static void NVIC_SetPendingIRQ (IRQn_Type IRQn)
 
static void NVIC_ClearPendingIRQ (IRQn_Type IRQn)
 
static void NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority)
 
static uint32_t NVIC_GetPriority (IRQn_Type IRQn)
 
static void NVIC_SystemReset (void)
 

Function Documentation

◆ NVIC_EnableIRQ()

static void NVIC_EnableIRQ ( IRQn_Type  IRQn)
inlinestatic

Enable External Interrupt.

The function enables a device-specific interrupt in the NVIC interrupt controller.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_DisableIRQ()

static void NVIC_DisableIRQ ( IRQn_Type  IRQn)
inlinestatic

Disable External Interrupt.

The function disables a device-specific interrupt in the NVIC interrupt controller.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_GetPendingIRQ()

static uint32_t NVIC_GetPendingIRQ ( IRQn_Type  IRQn)
inlinestatic

Get Pending Interrupt.

The function reads the pending register in the NVIC and returns the pending bit for the specified interrupt.

Parameters
[in]IRQnInterrupt number.
Returns
0 Interrupt status is not pending.
1 Interrupt status is pending.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_SetPendingIRQ()

static void NVIC_SetPendingIRQ ( IRQn_Type  IRQn)
inlinestatic

Set Pending Interrupt.

The function sets the pending bit of an external interrupt.

Parameters
[in]IRQnInterrupt number. Value cannot be negative.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_ClearPendingIRQ()

static void NVIC_ClearPendingIRQ ( IRQn_Type  IRQn)
inlinestatic

Clear Pending Interrupt.

The function clears the pending bit of an external interrupt.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_SetPriority()

static void NVIC_SetPriority ( IRQn_Type  IRQn,
uint32_t  priority 
)
inlinestatic

Set Interrupt Priority.

The function sets the priority of an interrupt.

Note
The priority cannot be set for every core interrupt.
Parameters
[in]IRQnInterrupt number.
[in]priorityPriority to set.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address










< System Control Block Base Address









< SCB configuration struct








< System Control Space Base Address







< System Control Block Base Address






< SCB configuration struct





< System Control Space Base Address




< NVIC Base Address



< NVIC configuration struct


< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_GetPriority()

static uint32_t NVIC_GetPriority ( IRQn_Type  IRQn)
inlinestatic

Get Interrupt Priority.

The function reads the priority of an interrupt. The interrupt number can be positive to specify an external (device specific) interrupt, or negative to specify an internal (core) interrupt.

Parameters
[in]IRQnInterrupt number.
Returns
Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address




< System Control Block Base Address



< SCB configuration struct


< System Control Space Base Address

< NVIC Base Address
< NVIC configuration struct

◆ NVIC_SystemReset()

static void NVIC_SystemReset ( void  )
inlinestatic

System Reset.

The function initiates a system reset request to reset the MCU.

< static inline keyword combination for GNU Compiler

< System Control Space Base Address




< System Control Block Base Address



< SCB configuration struct


< SCB AIRCR: VECTKEY Position

< SCB AIRCR: SYSRESETREQ Position
< SCB AIRCR: SYSRESETREQ Mask