C2A_Core
tc_transfer_frame.c ファイル

CCSDS で規定される TC Transfer Frame の実装 [詳解]

#include "tc_transfer_frame.h"
#include <string.h>
#include <src_core/Library/crc.h>
tc_transfer_frame.c の依存先関係図:

[ソースコード]

関数

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 を取得 [詳解]
 
const TcSegmentTCTF_get_tc_segment (const TcTransferFrame *tctf)
 TC Segment を取得 [詳解]
 
uint16_t TCTF_get_fecw (const TcTransferFrame *tctf)
 FECW を取得 [詳解]
 
uint8_t TCTF_check_fecw (const TcTransferFrame *tctf)
 TCTF FECW のチェック [詳解]
 
const TcTransferFrameTCTF_convert_from_bytes_to_tctf (const uint8_t *byte)
 受信 byte 列を TcTransferFrame* に変換 [詳解]
 

詳解

CCSDS で規定される TC Transfer Frame の実装

tc_transfer_frame.c に定義があります。

関数詳解

◆ TCTF_check_fecw()

uint8_t TCTF_check_fecw ( const TcTransferFrame tctf)

TCTF FECW のチェック

引数
[in]tctfTcTransferFrame
戻り値
bool: 1: ok, 0: error
覚え書き
ここでは標準として CRC-16-CCITT を採用している

tc_transfer_frame.c119 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ TCTF_convert_from_bytes_to_tctf()

const TcTransferFrame* TCTF_convert_from_bytes_to_tctf ( const uint8_t *  byte)

受信 byte 列を TcTransferFrame* に変換

引数
[in]byte受信 byte 列
戻り値
TcTransferFrame*

tc_transfer_frame.c127 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_fecw()

uint16_t TCTF_get_fecw ( const TcTransferFrame tctf)

FECW を取得

引数
[in]tctfTcTransferFrame
戻り値
FECW
覚え書き
エンディアンは既に考慮されている (ccsds は big endian)

tc_transfer_frame.c108 行目に定義があります。

呼び出し関係図:

◆ TCTF_get_frame_len()

uint16_t TCTF_get_frame_len ( const TcTransferFrame tctf)

Frame Length を取得

引数
[in]tctfTcTransferFrame
戻り値
Frame Length

tc_transfer_frame.c84 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_frame_seq_num()

uint8_t TCTF_get_frame_seq_num ( const TcTransferFrame tctf)

Frame Sequence Number を取得

引数
[in]tctfTcTransferFrame
戻り値
Frame Sequence Number

tc_transfer_frame.c98 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_scid()

TCTF_SCID TCTF_get_scid ( const TcTransferFrame tctf)

SCID を取得

引数
[in]tctfTcTransferFrame
戻り値
TCTF_SCID

tc_transfer_frame.c47 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_tc_segment()

const TcSegment* TCTF_get_tc_segment ( const TcTransferFrame tctf)

TC Segment を取得

引数
[in]tctfTcTransferFrame
戻り値
TC Segment

tc_transfer_frame.c103 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_type()

TCTF_TYPE TCTF_get_type ( const TcTransferFrame tctf)

command type を取得

引数
[in]tctfTcTransferFrame
戻り値
TCTF_TYPE

tc_transfer_frame.c28 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_vcid()

TCTF_VCID TCTF_get_vcid ( const TcTransferFrame tctf)

VCID を取得

引数
[in]tctfTcTransferFrame
戻り値
TCTF_VCID

tc_transfer_frame.c67 行目に定義があります。

被呼び出し関係図:

◆ TCTF_get_ver()

TCTF_VER TCTF_get_ver ( const TcTransferFrame tctf)

version を取得

引数
[in]tctfTcTransferFrame
戻り値
TCTF_VER

tc_transfer_frame.c11 行目に定義があります。

被呼び出し関係図: