code: def create_filter(extended, from_id, to_id, rtr_only, rtr_too):
          
          return [{
              "can_id": Ucan.calculate_acr(extended, from_id, to_id, rtr_only, rtr_too),
              "can_mask": Ucan.calculate_amr(extended, from_id, to_id, rtr_only, rtr_too),
              "extended": extended
          }]
docs: Calculates AMR and ACR using CAN-ID as parameter.
  
          :param bool extended:
              if True parameters from_id and to_id contains 29-bit CAN-ID
  
          :param int from_id:
              first CAN-ID which should be received
  
          :param int to_id:
              last CAN-ID which should be received
  
          :param bool rtr_only:
              if True only RTR-Messages should be received, and rtr_too will be ignored
  
          :param bool rtr_too:
              if True CAN data frames and RTR-Messages should be received
  
          :return: Returns list with one filter containing a "can_id", a "can_mask" and "extended" key.