/
DEF_BIT_FIELD_WR()
DEF_BIT_FIELD_WR()
Writes 'field_val
' field at position given by mask 'field_mask
' in variable 'var
'.
Files
lib_def.h
Prototype
DEF_BIT_FIELD_WR(var, field_val, field_mask)
Arguments
var
Variable to write field to.
field_val
Desired value for field.
field_mask
Mask of field to write to.
Returned Value
None.
Required Configuration
None.
Notes / Warnings
- '
field_mask
' argument must contain a mask with contiguous set bits. - '
var
', 'field_val
' & 'field_mask
' SHOULD be unsigned integers.
Related content
DEF_BIT_FIELD_RD()
DEF_BIT_FIELD_RD()
More like this
DEF_BIT_FIELD_ENC()
DEF_BIT_FIELD_ENC()
More like this
DEF_BIT_FIELD_xx()
DEF_BIT_FIELD_xx()
More like this
DEF_BITxx()
DEF_BITxx()
More like this
DEF_BIT_SET()
DEF_BIT_SET()
More like this
DEF_BIT_TOGGLE()
DEF_BIT_TOGGLE()
More like this