DEF_BIT_FIELD_ENC()
Encodes given 'field_val
' at position given by mask 'field_mask
'.
Files
lib_def.h
Prototype
DEF_BIT_FIELD_ENC(field_val, field_mask);
Arguments
field_val
Value to encode.
field_mask
Mask of field to read.
Returned Value
Field value, masked and left-shifted to field position.
Required Configuration
None.
Notes / Warnings
- '
field_mask
' argument must contain a mask with contiguous set bits. - '
field_val
' & 'field_mask
' SHOULD be unsigned integers.