code: def FilterMessages(
          self,
          Channel,
          FromID,
          ToID,
          Mode):
  
          
          try:
              res = self.__m_dllBasic.CAN_FilterMessages(Channel,FromID,ToID,Mode)
              return TPCANStatus(res)
          except:
              logger.error("Exception on PCANBasic.FilterMessages")
              raise
docs: Configures the reception filter
  
          Remarks:
            The message filter will be expanded with every call to this function.
            If it is desired to reset the filter, please use the 'SetValue' function.
  
          Parameters:
            Channel : A TPCANHandle representing a PCAN Channel
            FromID  : A c_uint value with the lowest CAN ID to be received
            ToID    : A c_uint value with the highest CAN ID to be received
            Mode    : A TPCANMode representing the message type (Standard, 11-bit
                      identifier, or Extended, 29-bit identifier)
  
          Returns:
            A TPCANStatus error code