get_packet_apid¶
- ccsdspy.utils.get_packet_apid(primary_header_bytes)[source]¶
Parse the APID of a packet from the bytes associated with a packet’s primary header.
- Parameters:
- primary_header_bytesbytes
Bytes associated with the packet primary header, of length
ccsdspy.constants.PRIMARY_HEADER_NUM_BYTES
.
- Raises:
- ValueError
The number of bytes in the supplied argument is too short. It must be of length
ccsdspy.constants.PRIMARY_HEADER_NUM_BYTES
.