C2A_Core
|
CCSDS で規定される TC Transfer Frame の実装 [詳解]
データ構造 | |
struct | TcTransferFrame |
TC Transfer Frame のパケット構造体 [詳解] | |
マクロ定義 | |
#define | TCTF_MAX_LEN (1024) |
#define | TCTF_HEADER_SIZE (5) |
#define | TCTF_FECF_SIZE (2) |
#define | TCTF_BC_CMD_CODE_UNLOCK (0x00) |
#define | TCTF_BC_CMD_CODE_SET_VR_1ST_BYTE (0x82) |
#define | TCTF_BC_CMD_CODE_SET_VR_2ND_BYTE (0x00) |
列挙型 | |
enum | TCTF_VER { TCTF_VER_1 = 0 , TCTF_VER_UNKNOWN } |
Version [詳解] | |
enum | TCTF_TYPE { TCTF_TYPE_AD = 0 , TCTF_TYPE_BD = 2 , TCTF_TYPE_BC = 3 , TCTF_TYPE_UNKNOWN } |
Type [詳解] | |
enum | TCTF_SCID { TCTF_SCID_SAMPLE_SATELLITE = 0x157 , TCTF_SCID_UNKNOWN } |
Spacecraft ID [詳解] | |
enum | TCTF_VCID { TCTF_VCID_REALTIME = 0 , TCTF_VCID_UNKNOWN } |
Virtual Channel ID [詳解] | |
関数 | |
TCTF_VER | TCTF_get_ver (const TcTransferFrame *tctf) |
version を取得 [詳解] | |
TCTF_TYPE | TCTF_get_type (const TcTransferFrame *tctf) |
command type を取得 [詳解] | |
TCTF_SCID | TCTF_get_scid (const TcTransferFrame *tctf) |
SCID を取得 [詳解] | |
TCTF_VCID | TCTF_get_vcid (const TcTransferFrame *tctf) |
VCID を取得 [詳解] | |
uint16_t | TCTF_get_frame_len (const TcTransferFrame *tctf) |
Frame Length を取得 [詳解] | |
uint8_t | TCTF_get_frame_seq_num (const TcTransferFrame *tctf) |
Frame Sequence Number を取得 [詳解] | |
uint16_t | TCTF_get_fecw (const TcTransferFrame *tctf) |
FECW を取得 [詳解] | |
const TcSegment * | TCTF_get_tc_segment (const TcTransferFrame *tctf) |
TC Segment を取得 [詳解] | |
uint8_t | TCTF_check_fecw (const TcTransferFrame *tctf) |
TCTF FECW のチェック [詳解] | |
const TcTransferFrame * | TCTF_convert_from_bytes_to_tctf (const uint8_t *byte) |
受信 byte 列を TcTransferFrame* に変換 [詳解] | |
CCSDS で規定される TC Transfer Frame の実装
tc_transfer_frame.h に定義があります。
#define TCTF_BC_CMD_CODE_SET_VR_1ST_BYTE (0x82) |
tc_transfer_frame.h の 41 行目に定義があります。
#define TCTF_BC_CMD_CODE_SET_VR_2ND_BYTE (0x00) |
tc_transfer_frame.h の 42 行目に定義があります。
#define TCTF_BC_CMD_CODE_UNLOCK (0x00) |
tc_transfer_frame.h の 40 行目に定義があります。
#define TCTF_FECF_SIZE (2) |
tc_transfer_frame.h の 38 行目に定義があります。
#define TCTF_HEADER_SIZE (5) |
tc_transfer_frame.h の 37 行目に定義があります。
#define TCTF_MAX_LEN (1024) |
tc_transfer_frame.h の 36 行目に定義があります。
enum TCTF_SCID |
Spacecraft ID
列挙値 | |
---|---|
TCTF_SCID_SAMPLE_SATELLITE | |
TCTF_SCID_UNKNOWN |
tc_transfer_frame.h の 86 行目に定義があります。
enum TCTF_TYPE |
Type
列挙値 | |
---|---|
TCTF_TYPE_AD | |
TCTF_TYPE_BD | |
TCTF_TYPE_BC | |
TCTF_TYPE_UNKNOWN |
tc_transfer_frame.h の 73 行目に定義があります。
enum TCTF_VCID |
Virtual Channel ID
列挙値 | |
---|---|
TCTF_VCID_REALTIME | |
TCTF_VCID_UNKNOWN |
tc_transfer_frame.h の 97 行目に定義があります。
enum TCTF_VER |
uint8_t TCTF_check_fecw | ( | const TcTransferFrame * | tctf | ) |
TCTF FECW のチェック
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 119 行目に定義があります。
const TcTransferFrame* TCTF_convert_from_bytes_to_tctf | ( | const uint8_t * | byte | ) |
受信 byte 列を TcTransferFrame* に変換
[in] | byte | 受信 byte 列 |
tc_transfer_frame.c の 127 行目に定義があります。
uint16_t TCTF_get_fecw | ( | const TcTransferFrame * | tctf | ) |
FECW を取得
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 108 行目に定義があります。
uint16_t TCTF_get_frame_len | ( | const TcTransferFrame * | tctf | ) |
Frame Length を取得
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 84 行目に定義があります。
uint8_t TCTF_get_frame_seq_num | ( | const TcTransferFrame * | tctf | ) |
Frame Sequence Number を取得
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 98 行目に定義があります。
TCTF_SCID TCTF_get_scid | ( | const TcTransferFrame * | tctf | ) |
const TcSegment* TCTF_get_tc_segment | ( | const TcTransferFrame * | tctf | ) |
TC Segment を取得
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 103 行目に定義があります。
TCTF_TYPE TCTF_get_type | ( | const TcTransferFrame * | tctf | ) |
command type を取得
[in] | tctf | TcTransferFrame |
tc_transfer_frame.c の 28 行目に定義があります。
TCTF_VCID TCTF_get_vcid | ( | const TcTransferFrame * | tctf | ) |
TCTF_VER TCTF_get_ver | ( | const TcTransferFrame * | tctf | ) |