DEF_BIT_FIELD_RD()
Reads a 'val
' field, masked and shifted, given by mask 'field_mask
'.
Files
lib_def.h
Prototype
DEF_BIT_FIELD_RD(val, field_mask);
Arguments
val
Value to read from.
field_mask
Mask of field to read.
Returned Value
Field value, masked and right-shifted to bit position 0.
Required Configuration
None.
Notes / Warnings
- '
field_mask
' argument must NOT be 0. - '
field_mask
' argument must contain a mask with contiguous set bits. - '
val
' & 'field_mask
' SHOULD be unsigned integers.