Go to the source code of this file.
|
#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) |
|
#define CSL_FEXT |
( |
|
reg, |
|
|
|
PER_REG_FIELD |
|
) |
| (((reg) & CSL_##PER_REG_FIELD##_MASK) >> CSL_##PER_REG_FIELD##_SHIFT) |
#define CSL_FEXTR |
( |
|
reg, |
|
|
|
msb, |
|
|
|
lsb |
|
) |
| (((reg) >> (lsb)) & ((1 << ((msb) - (lsb) + 1)) - 1)) |
#define CSL_FINS |
( |
|
reg, |
|
|
|
PER_REG_FIELD, |
|
|
|
val |
|
) |
| |
Value:((reg) = ((reg) & ~CSL_##PER_REG_FIELD##_MASK) \
#define CSL_FMK(PER_REG_FIELD, val)
Definition at line 30 of file cslr.h.
#define CSL_FINSR |
( |
|
reg, |
|
|
|
msb, |
|
|
|
lsb, |
|
|
|
val |
|
) |
| |
Value:((reg) = ((reg) &~ (((1 << ((msb) - (lsb) + 1)) - 1) << (lsb))) \
#define CSL_FMKR(msb, lsb, val)
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) |
#define CSL_FMK |
( |
|
PER_REG_FIELD, |
|
|
|
val |
|
) |
| (((val) << CSL_##PER_REG_FIELD##_SHIFT) & CSL_##PER_REG_FIELD##_MASK) |
#define CSL_FMKR |
( |
|
msb, |
|
|
|
lsb, |
|
|
|
val |
|
) |
| (((val) & ((1 << ((msb) - (lsb) + 1)) - 1)) << (lsb)) |
#define CSL_FMKT |
( |
|
PER_REG_FIELD, |
|
|
|
TOKEN |
|
) |
| CSL_FMK(PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN) |