-
Notifications
You must be signed in to change notification settings - Fork 3
Libcubesat
AVGP edited this page Apr 23, 2012
·
5 revisions
The Interface should helps with handling of TC-Packets and TC-Frames.
See lib/ directory.
Current interface:
- qb_data_to_packet: This function allows to encapsulate a given payload (as a byte-buffer) into a TC-Packet. [READY]
- qb_packet_to_segments: This function splits a packet into one or more TC-Segment(s). [Stub]
- qb_segment_to_frame: This function adds the necessary frame header to a single TC-Segment. [Stub]
- qb_frames_to_packets: This function allows to recollect TC-Frames to reconstruct the TC-Packet(s) within an array of TC-Frames. [Stub]
- validateFrame: This function allows to validate a given TC-Transfer-Frame (does not implement Frame-Error control [READY]
- mkAppPacket: This function takes a Spacecraft-ID (from a TC-Transfer-Frame), a validation flag (0 if original frame was invalid, 1 if original frame was valid) and a TC-Packet and combines them to a single qb_app_packet for insertion into the database. [Stub]