Implements the iterator protocol on a set of packets :return: Next readable CAN Packet from the specified file
(self)
| 588 | return name, filename |
| 589 | |
| 590 | def next(self): |
| 591 | # type: () -> Packet |
| 592 | """Implements the iterator protocol on a set of packets |
| 593 | |
| 594 | :return: Next readable CAN Packet from the specified file |
| 595 | """ |
| 596 | try: |
| 597 | pkt = None |
| 598 | while pkt is None: |
| 599 | pkt = self.read_packet() |
| 600 | except EOFError: |
| 601 | raise StopIteration |
| 602 | |
| 603 | return pkt |
| 604 | __next__ = next |
| 605 | |
| 606 | def read_packet(self, size=CAN_MTU): |
nothing calls this directly
no test coverage detected