MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ftfx utilities

Macros

#define MAKE_VERSION(major, minor, bugfix)   (((major) << 16) | ((minor) << 8) | (bugfix))
 Constructs the version number for drivers. More...
 
#define MAKE_STATUS(group, code)   ((((group)*100) + (code)))
 Constructs a status code value from a group and a code number. More...
 
#define FOUR_CHAR_CODE(a, b, c, d)   (((uint32_t)(d) << 24u) | ((uint32_t)(c) << 16u) | ((uint32_t)(b) << 8u) | ((uint32_t)(a)))
 Constructs the four character code for the Flash driver API key. More...
 
#define ALIGN_DOWN(x, a)   (((uint32_t)(x)) & ~((uint32_t)(a)-1u))
 Alignment(down) utility. More...
 
#define ALIGN_UP(x, a)   ALIGN_DOWN((uint32_t)(x) + (uint32_t)(a)-1u, a)
 Alignment(up) utility. More...
 
#define B1P4(b)   (((uint32_t)(b)&0xFFU) << 24U)
 bytes2word utility. More...
 

Detailed Description

Macro Definition Documentation

#define MAKE_VERSION (   major,
  minor,
  bugfix 
)    (((major) << 16) | ((minor) << 8) | (bugfix))
#define MAKE_STATUS (   group,
  code 
)    ((((group)*100) + (code)))
#define FOUR_CHAR_CODE (   a,
  b,
  c,
 
)    (((uint32_t)(d) << 24u) | ((uint32_t)(c) << 16u) | ((uint32_t)(b) << 8u) | ((uint32_t)(a)))
#define ALIGN_DOWN (   x,
 
)    (((uint32_t)(x)) & ~((uint32_t)(a)-1u))
#define ALIGN_UP (   x,
 
)    ALIGN_DOWN((uint32_t)(x) + (uint32_t)(a)-1u, a)
#define B1P4 (   b)    (((uint32_t)(b)&0xFFU) << 24U)