Skip to main content

Filter Class

Namespace: GHIElectronics.TinyCLR.Devices.Can · Assembly: GHIElectronics.TinyCLR.Devices.Can

Acceptance-filter configuration for a CAN controller.

public class Filter

Methods

AddRangeFilter(IdType idType, uint startId, uint endId)

public void AddRangeFilter(IdType idType, uint startId, uint endId)

Accepts IDs in the inclusive range [startId, endId].

ParameterTypeDescription
idTypeIdType
startIduint
endIduint

AddMaskFilter(IdType idType, uint compare, uint mask)

public void AddMaskFilter(IdType idType, uint compare, uint mask)

Accepts IDs where the bits selected by mask equal those in compare.

ParameterTypeDescription
idTypeIdType
compareuint
maskuint

RejectRemoteFrame(IdType idType)

public void RejectRemoteFrame(IdType idType)

Filters out remote-transmission-request (RTR) frames of the given ID width.

ParameterTypeDescription
idTypeIdType

Clear()

public void Clear()

Removes every previously installed filter (controller will pass all frames).