Skip to content
Snippets Groups Projects
Commit 9455a94e authored by Kien Le's avatar Kien Le
Browse files

Add documentation

parent 9bc4e1ce
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,12 @@ def parse_rt130_time(year: int, time_bytes: bytes) -> UTCDateTime:
def get_rt130_packet_header(rt130_packet: bytes) -> PacketHeader:
"""
Get the packet header stored in the first 16 bits of an RT130 packet.
:param rt130_packet: the RT130 packet to process
:return: a PacketHeader object containing the header of rt130_packet
"""
try:
# Because RT130 data is always big-endian, it is more convenient to
# use str.decode() than the unpacker.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment