@@ -793,7 +793,7 @@ def _create_mask(self, match):
793
793
next_mask_index = masks_used
794
794
795
795
self ._set_mask_register (next_mask_index , mask , match .extended )
796
- # Append the actual mask to the 'in use' array so later we can
796
+ # Append the actual mask to the 'in use' array so later we can
797
797
# find it to use again
798
798
self ._masks_in_use .append (mask )
799
799
return next_mask_index
@@ -883,25 +883,25 @@ def listen(self, matches=None, *, timeout: float = 10):
883
883
Creating a listener is an expensive operation and can interfere with reception of messages
884
884
by other listeners.
885
885
886
- There is an implementation-defined maximum number of listeners and limit to the complexity of
887
- the filters.
886
+ There is an implementation-defined maximum number of listeners and limit to the complexity \
887
+ of the filters.
888
888
889
- If the hardware cannot support all the requested matches, a ValueError is raised. Note that \
890
- generally there are some number of hardware filters shared among all fifos.
889
+ If the hardware cannot support all the requested matches, a ValueError is raised. Note \
890
+ that generally there are some number of hardware filters shared among all fifos.
891
891
892
- A message can be received by at most one Listener. If more than one listener matches a message, \
893
- it is undefined which one actually receives it.
892
+ A message can be received by at most one Listener. If more than one listener matches a \
893
+ message, it is undefined which one actually receives it.
894
894
895
895
The MCP2515 has space for 2 masks (RXM0/RXM1) and 6 filters (RXMF0-RXMF5). \
896
- Mask RXM0 is paired with 2 filters (RXF0-1) and mask RXM1 is paired with 4 filters (RXF2-5). \
897
- Read the MCP2515 datasheet for more details on masks and filters.
896
+ Mask RXM0 is paired with 2 filters (RXF0-1) and mask RXM1 is paired with 4 filters \
897
+ (RXF2-5). Read the MCP2515 datasheet for more details on masks and filters.
898
898
899
899
You can use up to 6 matches (match = mask & filter) in the array. \
900
900
The order of the match objects in the array matters. \
901
901
The first unique mask will be placed in RXM0 and can be paired with up to 2 filters. \
902
902
The second unique mask will be placed in RXM1 and can be paired with up to 4 filters. \
903
- When no mask is defined in the match object, an 'exact match' mask of all 1's will be used. \
904
- You can use the same mask in multiple matches, however if there are more than \
903
+ When no mask is defined in the match object, an 'exact match' mask of all 1's will be \
904
+ used. You can use the same mask in multiple matches, however if there are more than \
905
905
2 unique masks in the matches array, a RuntimeError will be raised. \
906
906
Similarly if there are more than 2 filters used with the first unique mask or \
907
907
more than 4 filters used with the second unique mask a RuntimeError will be raised.
@@ -914,7 +914,8 @@ def listen(self, matches=None, *, timeout: float = 10):
914
914
timeout (float, optional): dictates how long ``receive()`` will block. Defaults to 10.
915
915
916
916
Returns:
917
- `canio.Listener`: Listener object used to receive CANio packets based on the arguments passed into ``listen()``
917
+ `canio.Listener`: Listener object used to receive CANio packets based on the arguments \
918
+ passed into ``listen()``
918
919
"""
919
920
if matches is None :
920
921
matches = []
0 commit comments