|
The default values for CODE and MASK are taken from the registry values AcceptanceCode and AcceptanceMask for the CAN driver. Therefore everybody can set the value he likes best. No need for a change.
However if these values are not given, the defaults are set in a way that as few messages as possible are accepted. Otherwise a board in a CAN network with much traffic would be slowed down until the filter is reduced by the CAN application. Switching the filter to accept more messages is easier than switching a universal filter down to accept less. Because if there are many many messages running on the bus, the board may even collapse and go unresponsive due to the huge number of message events that have to be processed. Therefore this choice of default values is not this restrictive by accident, it is chosen this way by intention. |