Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_def.h

Prototype

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          DEF_BIT_FIELD_ENCWR(var, field_val, field_mask);


Arguments

var

Variable to write field to.

...

Mask of field to write to.

Returned Value

Field value, masked and left-shifted to field positionNone.

Required Configuration

None.

...

  1. 'field_mask' argument must contain a mask with contiguous set bits.
  2. 'var', 'field_val' & 'field_mask' SHOULD be unsigned integers.