LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cslr.h File Reference

Go to the source code of this file.

Macros

#define CSL_FMK(PER_REG_FIELD, val)   (((val) << CSL_##PER_REG_FIELD##_SHIFT) & CSL_##PER_REG_FIELD##_MASK)
 
#define CSL_FEXT(reg, PER_REG_FIELD)   (((reg) & CSL_##PER_REG_FIELD##_MASK) >> CSL_##PER_REG_FIELD##_SHIFT)
 
#define CSL_FINS(reg, PER_REG_FIELD, val)
 
#define CSL_FMKT(PER_REG_FIELD, TOKEN)   CSL_FMK(PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)
 
#define CSL_FINST(reg, PER_REG_FIELD, TOKEN)   CSL_FINS((reg), PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)
 
#define CSL_FMKR(msb, lsb, val)   (((val) & ((1 << ((msb) - (lsb) + 1)) - 1)) << (lsb))
 
#define CSL_FEXTR(reg, msb, lsb)   (((reg) >> (lsb)) & ((1 << ((msb) - (lsb) + 1)) - 1))
 
#define CSL_FINSR(reg, msb, lsb, val)
 

Macro Definition Documentation

#define CSL_FEXT (   reg,
  PER_REG_FIELD 
)    (((reg) & CSL_##PER_REG_FIELD##_MASK) >> CSL_##PER_REG_FIELD##_SHIFT)

Definition at line 26 of file cslr.h.

#define CSL_FEXTR (   reg,
  msb,
  lsb 
)    (((reg) >> (lsb)) & ((1 << ((msb) - (lsb) + 1)) - 1))

Definition at line 51 of file cslr.h.

#define CSL_FINS (   reg,
  PER_REG_FIELD,
  val 
)
Value:
((reg) = ((reg) & ~CSL_##PER_REG_FIELD##_MASK) \
| CSL_FMK(PER_REG_FIELD, val))
#define CSL_FMK(PER_REG_FIELD, val)
Definition: cslr.h:22

Definition at line 30 of file cslr.h.

#define CSL_FINSR (   reg,
  msb,
  lsb,
  val 
)
Value:
((reg) = ((reg) &~ (((1 << ((msb) - (lsb) + 1)) - 1) << (lsb))) \
| CSL_FMKR(msb, lsb, val))
#define CSL_FMKR(msb, lsb, val)
Definition: cslr.h:47

Definition at line 55 of file cslr.h.

#define CSL_FINST (   reg,
  PER_REG_FIELD,
  TOKEN 
)    CSL_FINS((reg), PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)

Definition at line 41 of file cslr.h.

#define CSL_FMK (   PER_REG_FIELD,
  val 
)    (((val) << CSL_##PER_REG_FIELD##_SHIFT) & CSL_##PER_REG_FIELD##_MASK)

Definition at line 22 of file cslr.h.

#define CSL_FMKR (   msb,
  lsb,
  val 
)    (((val) & ((1 << ((msb) - (lsb) + 1)) - 1)) << (lsb))

Definition at line 47 of file cslr.h.

#define CSL_FMKT (   PER_REG_FIELD,
  TOKEN 
)    CSL_FMK(PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)

Definition at line 37 of file cslr.h.