![]() |
NHS31xx SW API
|
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) |
__STATIC_INLINE void __NOP | ( | void | ) |
No Operation.
No Operation does nothing. This instruction can be used for code alignment purposes.
__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.
__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.
__STATIC_INLINE void __SEV | ( | void | ) |
Send Event.
Send Event is a hint instruction. It causes an event to be signaled to the CPU.
__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.
__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.
__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.
__STATIC_INLINE uint32_t __REV | ( | uint32_t | value | ) |
Reverse byte order (32 bit)
This function reverses the byte order in integer value.
[in] | value | Value to reverse |
__STATIC_INLINE uint32_t __REV16 | ( | uint32_t | value | ) |
Reverse byte order (16 bit)
This function reverses the byte order in two unsigned short values.
[in] | value | Value to reverse |
__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.
[in] | value | Value to reverse |
__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.
[in] | op1 | Value to rotate |
[in] | op2 | Number of Bits to rotate |