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

Bit position and mask macros. More...

Macros

#define DACR_D_Pos_(n)   (2U*n)
 DACR: Dn Position.
 
#define DACR_D_Msk_(n)   (3UL << DACR_D_Pos_(n))
 DACR: Dn Mask.
 

Description

Bit position and mask macros.

Macro Definition Documentation

◆ DACR_D_Msk_

#define DACR_D_Msk_ (   n)    (3UL << DACR_D_Pos_(n))

DACR: Dn Mask.

Get the bit mask for domain n access permission.

Example:

// clear access permission for domain 7
#define DACR_D_Msk_(n)
DACR: Dn Mask.
__STATIC_FORCEINLINE uint32_t __get_DACR(void)
Get DACR.
Definition: cmsis_cp15.h:154
__STATIC_FORCEINLINE void __set_DACR(uint32_t dacr)
Set DACR.
Definition: cmsis_cp15.h:167

◆ DACR_D_Pos_

#define DACR_D_Pos_ (   n)    (2U*n)

DACR: Dn Position.

Get the bit position for domain n access permission.

Example:

// retrieve access permission for domain 5
uint32_t domain5 = (__get_DACR() & DACR_D_Msk_(5)) >> DACR_D_Pos_(5);
#define DACR_D_Pos_(n)
DACR: Dn Position.