ait.dsn.cfdp.pdu.header module
- class ait.dsn.cfdp.pdu.header.Header(*args, **kwargs)
Bases:
object
- CRC_NOT_PRESENT = 0
- CRC_PRESENT = 1
- FILE_DATA_PDU = 1
- FILE_DIRECTIVE_PDU = 0
- TOWARDS_RECEIVER = 0
- TOWARDS_SENDER = 1
- TRANSACTION_SEQ_NUM_LENGTH = 4
- is_valid()
Check if all header fields are valid length
- property length
Byte length of Header
- to_bytes()
Encode PDU to a raw bytes (string) format to be transmitted
Each byte is encoded into an int representation of the binary, and added to a list of bytes in order. All the bytes are then packed into a struct.
- static to_object(pdu_hdr)
Return PDU subclass object created from given bytes of data
- ait.dsn.cfdp.pdu.header.int_to_byte_list(value)