Skip to content

Commit

Permalink
update user func.
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshiAki64 committed Feb 19, 2025
1 parent 5f12aef commit 6ce01c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
#include "aos_transfer_frame_define.h"

AOSTF_SCID AOSTF_get_scid_from_uint8(uint8_t scid)
AOSTF_SCID AOSTF_get_scid_from_uint16(uint16_t scid)
{
switch ((AOSTF_SCID)scid)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
/**
* @enum AOSTF_SCID
* @brief Spacecraft ID
* @note 8 bit
* @note 10 bit
*/
typedef enum
{
AOSTF_SCID_SAMPLE_SATELLITE = 0x00,
AOSTF_SCID_SAMPLE_SATELLITE = 0x000,
AOSTF_SCID_UNKNOWN
} AOSTF_SCID;

#define AOSTF_SCID_MY_ID (AOSTF_SCID_SAMPLE_SATELLITE) //!< 自分の SCID

/**
* @brief バイト列から AOSTF_SCID を取得
* @param scid: AOSTF_SCID 候補の uint8_t
* @param scid: AOSTF_SCID 候補の uint16_t
* @note 不正な入力のときは AOSTF_SCID_UNKNOWN を返す
* @return AOSTF_SCID
*/
AOSTF_SCID AOSTF_get_scid_from_uint8(uint8_t scid);
AOSTF_SCID AOSTF_get_scid_from_uint16(uint16_t scid);

#endif

0 comments on commit 6ce01c5

Please sign in to comment.