This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Filter: | |
def __init__(self, address: int, *, extended: bool = False, mask: Optional[int] = None): | |
"""Construct a CanFilter with the given properties. | |
If mask is not None, then the filter is for any sender which matches all | |
the nonzero bits in mask. Otherwise, it matches exactly the given address. | |
If extended is true then only extended addresses are matched, otherwise | |
only standard addresses are matched. | |
""" |