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.
Namespace: Peak.Can.BasicAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
public FilteringCriterion(
uint fromIdOrMask,
uint toIdOrCode,
FilterMode canMode = FilterMode.Standard,
bool isIdRange = true,
FilterBehavior behavior = FilterBehavior.Include
)
Public Sub New (
fromIdOrMask As UInteger,
toIdOrCode As UInteger,
Optional canMode As FilterMode = FilterMode.Standard,
Optional isIdRange As Boolean = true,
Optional behavior As FilterBehavior = FilterBehavior.Include
)
public:
FilteringCriterion(
unsigned int fromIdOrMask,
unsigned int 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.