FilteringCriterionSetMessageType Method

Configures this instance to do a CAN message type filtering.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public void SetMessageType(
	MessageType typesFlag,
	FilterBehavior behavior = FilterBehavior.Include
)

Parameters

typesFlag  MessageType
A value indicating the allowed CAN message types.

  Note

The value Standard has to be specified alone as a FilteringCriterion value, if standard messages are wanted to be discarded.
behavior  FilterBehavior  (Optional)
Indicates the operation to perform when a CAN message matches this criterion.

See Also