Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Current »

Encodes given 'field_val' at position given by mask 'field_mask'.

Files

lib_def.h

Prototype

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

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