Home
last modified time | relevance | path

Searched refs:FrameStatus (Results 1 – 2 of 2) sorted by relevance

/external/pigweed/pw_hdlc/py/
Ddecode_test.py22 from pw_hdlc.decode import Frame, FrameDecoder, FrameStatus, NO_ADDRESS
39 status: FrameStatus = FrameStatus.OK
42 def error(cls, status: FrameStatus): argument
43 assert status is not FrameStatus.OK
54 status: FrameStatus
68 Expected.error(FrameStatus.FRAMING_ERROR),
69 Expected.error(FrameStatus.FRAMING_ERROR),
120 Expected.error(FrameStatus.FRAMING_ERROR),
125 (b'\x7e1\x7e', [Expected.error(FrameStatus.FRAMING_ERROR)]),
126 (b'\x7e12\x7e', [Expected.error(FrameStatus.FRAMING_ERROR)]),
[all …]
/external/pigweed/pw_hdlc/py/pw_hdlc/
Ddecode.py29 class FrameStatus(enum.Enum): class
42 status: FrameStatus = FrameStatus.OK): argument
60 if status == FrameStatus.OK:
63 self.status = FrameStatus.BAD_ADDRESS
77 return self.status is FrameStatus.OK
95 def _check_frame(frame_data: bytes) -> FrameStatus:
97 return FrameStatus.FRAMING_ERROR
101 return FrameStatus.FCS_MISMATCH
103 return FrameStatus.OK
137 def _finish_frame(self, status: FrameStatus) -> Frame: argument
[all …]