Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 9 Current »

Reads a 'val' field, masked and shifted, given by mask 'field_mask'.

Files

lib_def.h

Prototype

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

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