FilteringCriterion(UInt32, UInt32, FilterMode, Boolean, FilterBehavior) Constructor

Initializes a filtering criterion for accepting a range of CAN identifiers, or for matching a mask/code acceptance value filtering.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public FilteringCriterion(
	uint fromIdOrMask,
	uint toIdOrCode,
	FilterMode canMode = FilterMode.Standard,
	bool isIdRange = true,
	FilterBehavior behavior = FilterBehavior.Include
)

Parameters

fromIdOrMask  UInt32
For isIdRange equals to true, a value representing the message id used as the start of range. For isIdRange equals to false, a value representing an acceptance mask.
toIdOrCode  UInt32
For isIdRange equals to true, a value representing the message id used as the end of range. For isIdRange equals to false, a value representing an acceptance code.
canMode  FilterMode  (Optional)
A value indicating the filter mode used for CAN identifier verification.
isIdRange  Boolean  (Optional)
A value indicating whether the parameters fromIdOrMask and toIdOrCode represent a range of CAN Identifiers, or acceptance mask and code values.
behavior  FilterBehavior  (Optional)
Indicates the operation to perform when a CAN message matches this criterion.

See Also