CMSIS-Core (Cortex-A)  
CMSIS-Core support for Cortex-A processor-based devices
 
Loading...
Searching...
No Matches
CMSIS Core Register Access Functions

Functions

__STATIC_FORCEINLINE uint32_t __get_CPSR (void)
 Get CPSR Register.
 
__STATIC_FORCEINLINE void __set_CPSR (uint32_t cpsr)
 Set CPSR Register.
 
__STATIC_FORCEINLINE uint32_t __get_mode (void)
 Get Mode.
 
__STATIC_FORCEINLINE void __set_mode (uint32_t mode)
 Set Mode.
 
__STATIC_FORCEINLINE uint32_t __get_SP (void)
 Get Stack Pointer.
 
__STATIC_FORCEINLINE void __set_SP (uint32_t stack)
 Set Stack Pointer.
 
__STATIC_FORCEINLINE uint32_t __get_SP_usr (void)
 Get USR/SYS Stack Pointer.
 
__STATIC_FORCEINLINE void __set_SP_usr (uint32_t topOfProcStack)
 Set USR/SYS Stack Pointer.
 
__STATIC_FORCEINLINE uint32_t __get_FPEXC (void)
 Get FPEXC.
 
__STATIC_FORCEINLINE void __set_FPEXC (uint32_t fpexc)
 Set FPEXC.
 

Description

Function Documentation

◆ __get_CPSR()

__STATIC_FORCEINLINE uint32_t __get_CPSR ( void  )

Get CPSR Register.

Returns
CPSR Register value

This function returns the content of the Current Program Status Register (CPSR).

◆ __get_FPEXC()

__STATIC_INLINE uint32_t __get_FPEXC ( void  )

Get FPEXC.

Returns
Floating Point Exception Control register value

This function returns the current value of the Floating-Point Exception Control register (FPEXC).

◆ __get_mode()

__STATIC_FORCEINLINE uint32_t __get_mode ( void  )

Get Mode.

Returns
Processor Mode

◆ __get_SP()

__STATIC_FORCEINLINE uint32_t __get_SP ( void  )

Get Stack Pointer.

Returns
Stack Pointer value

◆ __get_SP_usr()

__STATIC_FORCEINLINE uint32_t __get_SP_usr ( void  )

Get USR/SYS Stack Pointer.

Returns
USR/SYS Stack Pointer value

◆ __set_CPSR()

__STATIC_FORCEINLINE void __set_CPSR ( uint32_t  cpsr)

Set CPSR Register.

Parameters
[in]cpsrCPSR value to set

This function assigns the given value to the Current Program Status Register (CPSR).

◆ __set_FPEXC()

__STATIC_INLINE void __set_FPEXC ( uint32_t  fpexc)

Set FPEXC.

Parameters
[in]fpexcFloating Point Exception Control value to set

This function assigns the given value to the Floating-Point Exception Control register (FPEXC).

◆ __set_mode()

__STATIC_FORCEINLINE void __set_mode ( uint32_t  mode)

Set Mode.

Parameters
[in]modeMode value to set

◆ __set_SP()

__STATIC_FORCEINLINE void __set_SP ( uint32_t  stack)

Set Stack Pointer.

Parameters
[in]stackStack Pointer value to set

This function assigns the given value to the current stack pointer.

◆ __set_SP_usr()

__STATIC_FORCEINLINE void __set_SP_usr ( uint32_t  topOfProcStack)

Set USR/SYS Stack Pointer.

Parameters
[in]topOfProcStackUSR/SYS Stack Pointer value to set

This function assigns the given value to the User/System Stack Pointer (SP_usr).