Versions Compared

Key

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

...

This function returns the value with a given bit width out of the frame at the given position. If width or position is out of range, the return value is 0.

Prototype

CPU_INT16UINT16U CanFrmGet(CANFRM     *frm,
CPU_INT08UINT08U width,
CPU_INT08UINT08U pos);

Parameter

Meaning

frm

Pointer to CAN frame

width

Width of value in bits in bit in range 1..32 or byte (1, 2 or 4).

Note: Interpreting width in bit or byte depends on the configuration setting CANSIG_GRANULARITY

pos

Position of first bit, which is used in the can frame in range 0..63.or of first byte.

Note: Interpreting the position in bit or byte depends on the configuration setting CANSIG_GRANULARITY

...

Value out of the CAN frame.