Skip to content

Commit

Permalink
fix small
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Mar 21, 2022
1 parent 7ab63d8 commit 6083a98
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ extern const GS_ValiateInfo* const gs_validate_info;

/**
* @brief GS_ValiateInfo の初期化
* @return void
*/
void GS_validate_init(void);

Expand All @@ -72,8 +73,8 @@ void GS_validate_init(void);
GS_VALIDATE_ERR GS_validate_tctf(const TcTransferFrame* tctf);

/**
* @brief テレメ用の clcw の作成
* @return uit32_t: clcw
* @brief テレメ用の CLCW の作成
* @return CLCW
*/
uint32_t GS_form_clcw(void);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @brief CCSDS で規定される TC Segment の実装
* @note packet 構造
* |---------+-------+-------+-----------------------------|
* | Pos | Pos | size | name |
* | Pos | Pos | Size | Name |
* | [octet] | [bit] | [bit] | |
* |---------+-------+-------+-----------------------------|
* | === Primary Header ===================================|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
* @file
* @brief CCSDS で規定される TC Transfer Frame の実装
* @note packet 構造
* |---------+-------+-------+-----------------------|
* | Pos | Pos | size | name |
* | [octet] | [bit] | [bit] | |
* |---------+-------+-------+-----------------------|
* | === Primary Header =============================|
* |---------+-------+-------+-----------------------|
* | 0 | 0 | 2 | Version |
* | 0 | 2 | 2 | Type |
* | 0 | 4 | 2 | N/A |
* | 0 | 6 | 10 | Spacecraft ID |
* | 2 | 0 | 6 | Virtual Channel ID |
* | 2 | 6 | 10 | Frame Length |
* | 4 | 0 | 8 | Frame Sequence Number |
* |---------+-------+-------+-----------------------|
* | === User Data Field ============================|
* |---------+-------+-------+-----------------------|
* | 5 | 0 | * | TC Segment |
* |---------+-------+-------+-----------------------|
* | === Frame Error Control Field ==================|
* |---------+-------+-------+-----------------------|
* | * | 0 | 16 | |
* |---------+-------+-------+-----------------------|
* |---------+-------+-------+--------------------------|
* | Pos | Pos | Size | Name |
* | [octet] | [bit] | [bit] | |
* |---------+-------+-------+--------------------------|
* | === Primary Header ================================|
* |---------+-------+-------+--------------------------|
* | 0 | 0 | 2 | Version |
* | 0 | 2 | 2 | Type |
* | 0 | 4 | 2 | N/A |
* | 0 | 6 | 10 | Spacecraft ID |
* | 2 | 0 | 6 | Virtual Channel ID |
* | 2 | 6 | 10 | Frame Length |
* | 4 | 0 | 8 | Frame Sequence Number |
* |---------+-------+-------+--------------------------|
* | === User Data Field ===============================|
* |---------+-------+-------+--------------------------|
* | 5 | 0 | * | TC Segment |
* |---------+-------+-------+--------------------------|
* | === Frame Error Control Field =====================|
* |---------+-------+-------+--------------------------|
* | * | 0 | 16 | Frame Error Control Word |
* |---------+-------+-------+--------------------------|
*/
#ifndef TC_TRANSFER_FRAME_H_
#define TC_TRANSFER_FRAME_H_
Expand Down Expand Up @@ -129,36 +129,36 @@ TCTF_SCID TCTF_get_scid(const TcTransferFrame* tctf);
TCTF_VCID TCTF_get_vcid(const TcTransferFrame* tctf);

/**
* @brief length を取得
* @brief Frame Length を取得
* @param[in] tctf: TcTransferFrame
* @return uint16_t
* @return Frame Length
*/
uint16_t TCTF_get_frame_len(const TcTransferFrame* tctf);

/**
* @brief length を取得
* @brief Frame Sequence Number を取得
* @param[in] tctf: TcTransferFrame
* @return uint8_t
* @return Frame Sequence Number
*/
uint8_t TCTF_get_frame_seq_num(const TcTransferFrame* tctf);

/**
* @brief fecw を取得
* @brief FECW を取得
* @param[in] tctf: TcTransferFrame
* @return uin16_t
* @return FECW
* @note エンディアンは既に考慮されている (ccsds は big endian)
*/
uint16_t TCTF_get_fecw(const TcTransferFrame* tctf);

/**
* @brief TcSegment を取得
* @brief TC Segment を取得
* @param[in] tctf: TcTransferFrame
* @return TcSegment*
* @return TC Segment
*/
const TcSegment* TCTF_get_tc_segment(const TcTransferFrame* tctf);

/**
* @brief TCTF fecw のチェック
* @brief TCTF FECW のチェック
* @param[in] tctf: TcTransferFrame
* @return bool: 1: ok, 0: error
* @note ここでは標準として CRC-16-CCITT を採用している
Expand Down

0 comments on commit 6083a98

Please sign in to comment.