CMSIS-Core (Cortex-A)  Version 1.2.1
CMSIS-Core support for Cortex-A processor-based devices
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Bit position and mask macros. More...

Macros

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

Description

Macro Definition Documentation

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

Get the bit mask for domain n access permission.

Example:

// clear access permission for domain 7
#define DACR_D_Pos_ (   n)    (2U*n)

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);