YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
CMSIS Core Register Access Functions
CMSIS Core Instruction Interface | Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » System Controls not in SCB (SCnSCB) | Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » Implementation Control Block register (ICB) » System Tick Timer (SysTick) » Instrumentation Trace Macrocell (ITM) » Data Watchpoint and Trace (DWT) | Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » System Controls not in SCB (SCnSCB) | Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » Implementation Control Block register (ICB) » System Tick Timer (SysTick) » Instrumentation Trace Macrocell (ITM) » Data Watchpoint and Trace (DWT) » Memory System Control Registers (IMPLEMENTATION DEFINED) » Power Mode Control Registers » External Wakeup Interrupt Controller Registers » External Wakeup Interrupt Controller (EWIC) interrupt status access registers » Error Banking Registers (IMPLEMENTATION DEFINED) » Processor Configuration Information Registers (IMPLEMENTATION DEFINED) » Software Test Library Observation Registers » Trace Port Interface (TPI) » Floating Point Unit (FPU) » Core Debug Registers (CoreDebug) » Debug Control Block » Debug Identification Block » Core register bit field macros » Core Definitions » Backwards Compatibility Aliases » Functions and Instructions Reference

Topics

 CMSIS SIMD Intrinsics
 

Macros

#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(x)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(x)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(x)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(x)
 Set FPSCR.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(fpscr)
 Set FPSCR.
 
#define __get_xPSR
 Get xPSR Register.
 
#define __enable_irq
 Enable IRQ Interrupts.
 
#define __disable_irq
 Disable IRQ Interrupts.
 

Functions

__STATIC_INLINE uint32_t __get_CONTROL (void)
 Enable IRQ Interrupts.
 
__STATIC_INLINE void __set_CONTROL (uint32_t control)
 Set Control Register.
 
__STATIC_INLINE uint32_t __get_IPSR (void)
 Get IPSR Register.
 
__STATIC_INLINE uint32_t __get_APSR (void)
 Get APSR Register.
 
__STATIC_INLINE uint32_t __get_xPSR (void)
 Get xPSR Register.
 
__STATIC_INLINE uint32_t __get_PSP (void)
 Get Process Stack Pointer.
 
__STATIC_INLINE void __set_PSP (uint32_t topOfProcStack)
 Set Process Stack Pointer.
 
__STATIC_INLINE uint32_t __get_MSP (void)
 Get Main Stack Pointer.
 
__STATIC_INLINE void __set_MSP (uint32_t topOfMainStack)
 Set Main Stack Pointer.
 
__STATIC_INLINE uint32_t __get_PRIMASK (void)
 Get Priority Mask.
 
__STATIC_INLINE void __set_PRIMASK (uint32_t priMask)
 Set Priority Mask.
 
__STATIC_INLINE uint32_t __get_FPSCR (void)
 Get FPSCR.
 
__STATIC_INLINE void __set_FPSCR (uint32_t fpscr)
 Set FPSCR.
 
__STATIC_FORCEINLINE void __enable_irq (void)
 Enable IRQ Interrupts.
 
__STATIC_FORCEINLINE void __disable_irq (void)
 Disable IRQ Interrupts.
 

Detailed Description

Macro Definition Documentation

◆ __disable_irq

__STATIC_FORCEINLINE void __disable_irq ( void)
Value:
__disable_interrupt

Disable IRQ Interrupts.

Disables IRQ interrupts by setting special-purpose register PRIMASK. Can only be executed in Privileged modes.

Definition at line 613 of file cmsis_iccarm.h.

◆ __enable_irq

__STATIC_FORCEINLINE void __enable_irq ( void)
Value:
__enable_interrupt

Enable IRQ Interrupts.

Enables IRQ interrupts by clearing special-purpose register PRIMASK. Can only be executed in Privileged modes.

Definition at line 612 of file cmsis_iccarm.h.

◆ __get_FPSCR [1/11]

__STATIC_FORCEINLINE uint32_t __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_armclang.h.

◆ __get_FPSCR [2/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1377 of file cmsis_armclang_ltm.h.

◆ __get_FPSCR [3/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_tiarmclang.h.

◆ __get_FPSCR [4/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_armclang.h.

◆ __get_FPSCR [5/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1377 of file cmsis_armclang_ltm.h.

◆ __get_FPSCR [6/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_tiarmclang.h.

◆ __get_FPSCR [7/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_armclang.h.

◆ __get_FPSCR [8/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1377 of file cmsis_armclang_ltm.h.

◆ __get_FPSCR [9/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_armclang.h.

◆ __get_FPSCR [10/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1377 of file cmsis_armclang_ltm.h.

◆ __get_FPSCR [11/11]

#define __get_FPSCR ( void)
Value:
((uint32_t)0U)

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 1401 of file cmsis_tiarmclang.h.

◆ __get_xPSR

__STATIC_FORCEINLINE uint32_t __get_xPSR ( void)
Value:
__get_PSR

Get xPSR Register.

Returns the content of the xPSR Register.

Returns
xPSR Register value

Definition at line 616 of file cmsis_iccarm.h.

◆ __set_FPSCR [1/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_armclang.h.

◆ __set_FPSCR [2/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_tiarmclang.h.

◆ __set_FPSCR [3/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_armclang.h.

◆ __set_FPSCR [4/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_tiarmclang.h.

◆ __set_FPSCR [5/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_armclang.h.

◆ __set_FPSCR [6/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_armclang.h.

◆ __set_FPSCR [7/11]

#define __set_FPSCR ( fpscr)
Value:
((void)(fpscr))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1413 of file cmsis_tiarmclang.h.

◆ __set_FPSCR [8/11]

#define __set_FPSCR ( x)
Value:
((void)(x))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1389 of file cmsis_armclang_ltm.h.

◆ __set_FPSCR [9/11]

#define __set_FPSCR ( x)
Value:
((void)(x))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1389 of file cmsis_armclang_ltm.h.

◆ __set_FPSCR [10/11]

#define __set_FPSCR ( x)
Value:
((void)(x))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1389 of file cmsis_armclang_ltm.h.

◆ __set_FPSCR [11/11]

#define __set_FPSCR ( x)
Value:
((void)(x))

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 1389 of file cmsis_armclang_ltm.h.

Function Documentation

◆ __disable_irq()

__STATIC_FORCEINLINE void __disable_irq ( void )

Disable IRQ Interrupts.

Disables IRQ interrupts by setting special-purpose register PRIMASK. Can only be executed in Privileged modes.

Definition at line 757 of file cmsis_armclang.h.

◆ __enable_irq()

__STATIC_FORCEINLINE void __enable_irq ( void )

Enable IRQ Interrupts.

Enables IRQ interrupts by clearing special-purpose register PRIMASK. Can only be executed in Privileged modes.

Definition at line 744 of file cmsis_armclang.h.

◆ __get_APSR()

__STATIC_FORCEINLINE uint32_t __get_APSR ( void )

Get APSR Register.

Returns the content of the APSR Register.

Returns
APSR Register value

Definition at line 598 of file cmsis_armcc.h.

◆ __get_CONTROL()

__STATIC_FORCEINLINE uint32_t __get_CONTROL ( void )

Enable IRQ Interrupts.

Get Control Register.

Enables IRQ interrupts by clearing special-purpose register PRIMASK. Can only be executed in Privileged modes.

Disable IRQ Interrupts

Disables IRQ interrupts by setting special-purpose register PRIMASK. Can only be executed in Privileged modes.

Get Control Register

Returns the content of the Control Register.

Returns
Control Register value

Returns the content of the Control Register.

Returns
Control Register value

Definition at line 561 of file cmsis_armcc.h.

◆ __get_FPSCR()

__STATIC_INLINE uint32_t __get_FPSCR ( void )

Get FPSCR.

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

Definition at line 777 of file cmsis_armcc.h.

◆ __get_IPSR()

__STATIC_FORCEINLINE uint32_t __get_IPSR ( void )

Get IPSR Register.

Returns the content of the IPSR Register.

Returns
IPSR Register value

Definition at line 586 of file cmsis_armcc.h.

◆ __get_MSP()

__STATIC_FORCEINLINE uint32_t __get_MSP ( void )

Get Main Stack Pointer.

Returns the current value of the Main Stack Pointer (MSP).

Returns
MSP Register value

Definition at line 646 of file cmsis_armcc.h.

◆ __get_PRIMASK()

__STATIC_FORCEINLINE uint32_t __get_PRIMASK ( void )

Get Priority Mask.

Returns the current state of the priority mask bit from the Priority Mask Register.

Returns
Priority Mask value

Definition at line 670 of file cmsis_armcc.h.

◆ __get_PSP()

__STATIC_FORCEINLINE uint32_t __get_PSP ( void )

Get Process Stack Pointer.

Returns the current value of the Process Stack Pointer (PSP).

Returns
PSP Register value

Definition at line 622 of file cmsis_armcc.h.

◆ __get_xPSR()

__STATIC_INLINE uint32_t __get_xPSR ( void )

Get xPSR Register.

Returns the content of the xPSR Register.

Returns
xPSR Register value

Definition at line 610 of file cmsis_armcc.h.

◆ __set_CONTROL()

__STATIC_FORCEINLINE void __set_CONTROL ( uint32_t control)

Set Control Register.

Writes the given value to the Control Register.

Parameters
[in]controlControl Register value to set

Definition at line 573 of file cmsis_armcc.h.

◆ __set_FPSCR()

__STATIC_FORCEINLINE void __set_FPSCR ( uint32_t fpscr)

Set FPSCR.

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

Definition at line 794 of file cmsis_armcc.h.

◆ __set_MSP()

__STATIC_FORCEINLINE void __set_MSP ( uint32_t topOfMainStack)

Set Main Stack Pointer.

Assigns the given value to the Main Stack Pointer (MSP).

Parameters
[in]topOfMainStackMain Stack Pointer value to set

Definition at line 658 of file cmsis_armcc.h.

◆ __set_PRIMASK()

__STATIC_FORCEINLINE void __set_PRIMASK ( uint32_t priMask)

Set Priority Mask.

Assigns the given value to the Priority Mask Register.

Parameters
[in]priMaskPriority Mask

Definition at line 682 of file cmsis_armcc.h.

◆ __set_PSP()

__STATIC_FORCEINLINE void __set_PSP ( uint32_t topOfProcStack)

Set Process Stack Pointer.

Assigns the given value to the Process Stack Pointer (PSP).

Parameters
[in]topOfProcStackProcess Stack Pointer value to set

Definition at line 634 of file cmsis_armcc.h.