def parse_tag_request_action(self, b7, b6, s): if b6: raise ParseError("bit 6 is RFU") tag_id = s.read("uint:8") return TagRequestAction( respond_when_completed=b7, operation=TagRequest(operand=TagId(tag_id=tag_id)))
def __iter__(self): if self.generate_tag_request_action: tag_request_action = TagRequestAction( respond_when_completed=self.send_tag_response_when_completed, operation=TagRequest(operand=TagId(tag_id=self.tag_id))) for byte in tag_request_action: yield byte if self.interface_status is not None: for byte in self.interface_status: yield byte for action in self.actions: for byte in action: yield byte