NHS31xx SW API
CMSIS Core Instruction Interface

Detailed Description

Access to dedicated instructions

Functions

__STATIC_INLINE void __NOP (void)
 
__STATIC_INLINE void __WFI (void)
 
__STATIC_INLINE void __WFE (void)
 
__STATIC_INLINE void __SEV (void)
 
__STATIC_INLINE void __ISB (void)
 
__STATIC_INLINE void __DSB (void)
 
__STATIC_INLINE void __DMB (void)
 
__STATIC_INLINE uint32_t __REV (uint32_t value)
 
__STATIC_INLINE uint32_t __REV16 (uint32_t value)
 
__STATIC_INLINE int32_t __REVSH (int32_t value)
 
__STATIC_INLINE uint32_t __ROR (uint32_t op1, uint32_t op2)
 

Function Documentation

◆ __NOP()

__STATIC_INLINE void __NOP ( void  )

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI()

__STATIC_INLINE void __WFI ( void  )

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE()

__STATIC_INLINE void __WFE ( void  )

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV()

__STATIC_INLINE void __SEV ( void  )

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB()

__STATIC_INLINE void __ISB ( void  )

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB()

__STATIC_INLINE void __DSB ( void  )

Data Synchronization Barrier.

This function acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB()

__STATIC_INLINE void __DMB ( void  )

Data Memory Barrier.

This function ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV()

__STATIC_INLINE uint32_t __REV ( uint32_t  value)

Reverse byte order (32 bit)

This function reverses the byte order in integer value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16()

__STATIC_INLINE uint32_t __REV16 ( uint32_t  value)

Reverse byte order (16 bit)

This function reverses the byte order in two unsigned short values.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH()

__STATIC_INLINE int32_t __REVSH ( int32_t  value)

Reverse byte order in signed short value.

This function reverses the byte order in a signed short value with sign extension to integer.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __ROR()

__STATIC_INLINE uint32_t __ROR ( uint32_t  op1,
uint32_t  op2 
)

Rotate Right in unsigned value (32 bit)

This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value