Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WDTの監視周期設定コマンドの追加 #380

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: 0e38aad788fca6fba1d44684152ac1a2
* db commit hash: e1e6b79acd85523f04266f1c08b7a3b89e5b6e05
* CSV files MD5: 6fb2d9b01a6f9efc3034e56bce3bf2fd
* db commit hash: 2ee4ca01ac9e153ad5671146ac9f5f72919b471d
* @note コード生成パラメータ:
* name: AOBC
* db_prefix: SAMPLE_AOBC
Expand Down Expand Up @@ -139,6 +139,7 @@ typedef enum
AOBC_Cmd_CODE_WDT_DISABLE = 0x0102, //!< WDT無効化
AOBC_Cmd_CODE_WDT_STOP_CLEAR = 0x0103, //!< WDTのカウンタクリアを止める=リセット実行
AOBC_Cmd_CODE_WDT_START_CLEAR = 0x0104, //!< WDTのカウンタクリアを開始する
AOBC_Cmd_CODE_WDT_SET_TIMER = 0x0105, //!< WDTの監視周期を変更 (監視周期[ms])

AOBC_Cmd_CODE_MAX
} AOBC_CMD_CODE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: 0e38aad788fca6fba1d44684152ac1a2
* db commit hash: e1e6b79acd85523f04266f1c08b7a3b89e5b6e05
* CSV files MD5: 6fb2d9b01a6f9efc3034e56bce3bf2fd
* db commit hash: 2ee4ca01ac9e153ad5671146ac9f5f72919b471d
* @note コード生成パラメータ:
* name: AOBC
* db_prefix: SAMPLE_AOBC
Expand Down Expand Up @@ -361,85 +361,85 @@ static CDS_ERR_CODE AOBC_analyze_tlm_aobc_hk_(const CommonTlmPacket* packet, AOB
temp_u8 >>= 0;
temp_u8 &= 0x3f;
aobc_driver->tlm_data.aobc_hk.dummy_data0 = temp_u8;
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_blk_ptr), &(f[148]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_cmd_ptr), &(f[150]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_regd_time), &(f[151]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_regd_id), &(f[155]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counter_total), &(f[157]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_high), &(f[161]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_middle), &(f[163]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_low), &(f[165]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_el), &(f[167]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_eh), &(f[169]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.group), &(f[171]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.local), &(f[172]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.err_level), &(f[176]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.time.total_cycle), &(f[177]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.time.step), &(f[181]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.note), &(f[182]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.group), &(f[186]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.local), &(f[187]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.time.total_cycle), &(f[191]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.time.step), &(f[195]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.note), &(f[196]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.eh.log_table.respond_counter), &(f[198]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.git_rev_core), &(f[202]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.git_rev_user), &(f[206]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_blk_ptr), &(f[210]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_cmd_ptr), &(f[211]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_regd_time), &(f[212]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_regd_id), &(f[216]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data1), &(f[218]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data2), &(f[222]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data3), &(f[226]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data4), &(f[230]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data5), &(f[234]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data6), &(f[238]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data7), &(f[242]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data8), &(f[246]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data9), &(f[250]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data10), &(f[254]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data11), &(f[258]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data12), &(f[262]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data13), &(f[266]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data14), &(f[270]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data15), &(f[274]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data16), &(f[278]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data17), &(f[282]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data18), &(f[286]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data19), &(f[290]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data20), &(f[294]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data21), &(f[298]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data22), &(f[302]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data23), &(f[306]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data24), &(f[310]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data25), &(f[314]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data26), &(f[318]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data27), &(f[322]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data28), &(f[326]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data29), &(f[330]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data30), &(f[334]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data31), &(f[338]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data32), &(f[342]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data33), &(f[346]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data34), &(f[350]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data35), &(f[354]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data36), &(f[358]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data37), &(f[362]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data38), &(f[366]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data39), &(f[370]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data40), &(f[374]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data41), &(f[378]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data42), &(f[382]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data43), &(f[386]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data44), &(f[390]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data45), &(f[394]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data46), &(f[398]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data47), &(f[402]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data48), &(f[406]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data49), &(f[410]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data50), &(f[414]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data51), &(f[418]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.wdt.timer), &(f[148]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_blk_ptr), &(f[152]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_cmd_ptr), &(f[154]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_regd_time), &(f[155]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.obc.bct_regd_id), &(f[159]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counter_total), &(f[161]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_high), &(f[165]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_middle), &(f[167]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_low), &(f[169]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_el), &(f[171]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.statistics.record_counters_eh), &(f[173]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.group), &(f[175]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.local), &(f[176]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.err_level), &(f[180]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.time.total_cycle), &(f[181]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.time.step), &(f[185]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_event.note), &(f[186]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.group), &(f[190]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.local), &(f[191]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.time.total_cycle), &(f[195]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.time.step), &(f[199]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.el.latest_high_event.note), &(f[200]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.eh.log_table.respond_counter), &(f[202]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.git_rev_core), &(f[206]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.git_rev_user), &(f[210]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_blk_ptr), &(f[214]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_cmd_ptr), &(f[215]), 1);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_regd_time), &(f[216]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.bct_regd_id), &(f[220]), 2);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data1), &(f[222]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data2), &(f[226]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data3), &(f[230]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data4), &(f[234]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data5), &(f[238]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data6), &(f[242]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data7), &(f[246]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data8), &(f[250]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data9), &(f[254]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data10), &(f[258]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data11), &(f[262]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data12), &(f[266]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data13), &(f[270]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data14), &(f[274]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data15), &(f[278]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data16), &(f[282]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data17), &(f[286]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data18), &(f[290]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data19), &(f[294]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data20), &(f[298]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data21), &(f[302]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data22), &(f[306]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data23), &(f[310]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data24), &(f[314]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data25), &(f[318]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data26), &(f[322]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data27), &(f[326]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data28), &(f[330]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data29), &(f[334]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data30), &(f[338]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data31), &(f[342]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data32), &(f[346]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data33), &(f[350]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data34), &(f[354]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data35), &(f[358]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data36), &(f[362]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data37), &(f[366]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data38), &(f[370]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data39), &(f[374]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data40), &(f[378]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data41), &(f[382]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data42), &(f[386]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data43), &(f[390]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data44), &(f[394]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data45), &(f[398]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data46), &(f[402]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data47), &(f[406]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data48), &(f[410]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data49), &(f[414]), 4);
ENDIAN_memcpy(&(aobc_driver->tlm_data.aobc_hk.dummy_data50), &(f[418]), 4);
// TODO: ビットフィールドをつかっている系は,様々なパターンがあり得るので,今後,バグが出ないか注視する

// ワーニング回避
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: 0e38aad788fca6fba1d44684152ac1a2
* db commit hash: e1e6b79acd85523f04266f1c08b7a3b89e5b6e05
* CSV files MD5: 6fb2d9b01a6f9efc3034e56bce3bf2fd
* db commit hash: 2ee4ca01ac9e153ad5671146ac9f5f72919b471d
* @note コード生成パラメータ:
* name: AOBC
* db_prefix: SAMPLE_AOBC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: 0e38aad788fca6fba1d44684152ac1a2
* db commit hash: e1e6b79acd85523f04266f1c08b7a3b89e5b6e05
* CSV files MD5: 6fb2d9b01a6f9efc3034e56bce3bf2fd
* db commit hash: 2ee4ca01ac9e153ad5671146ac9f5f72919b471d
* @note コード生成パラメータ:
* name: AOBC
* db_prefix: SAMPLE_AOBC
Expand Down Expand Up @@ -301,6 +301,7 @@ typedef struct
{
uint8_t is_enable;
uint8_t is_clear_enable;
uint32_t timer;
} wdt;
uint8_t dummy_data0;
struct
Expand Down Expand Up @@ -401,7 +402,6 @@ typedef struct
uint32_t dummy_data48;
uint32_t dummy_data49;
uint32_t dummy_data50;
uint32_t dummy_data51;
} aobc_hk;
} AOBC_TlmData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: 0e38aad788fca6fba1d44684152ac1a2
* db commit hash: e1e6b79acd85523f04266f1c08b7a3b89e5b6e05
* CSV files MD5: 6fb2d9b01a6f9efc3034e56bce3bf2fd
* db commit hash: 2ee4ca01ac9e153ad5671146ac9f5f72919b471d
* @note コード生成パラメータ:
* name: AOBC
* db_prefix: SAMPLE_AOBC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ def test_wdt_at_sils():
assert tlm_HK["HK.WDT.IS_ENABLE"] == "ENA"
assert tlm_HK["HK.WDT.IS_CLEAR_ENABLE"] == "ENA"

wings.util.send_cmd_and_confirm(
ope, c2a_enum.Cmd_CODE_WDT_SET_TIMER, (1000,), c2a_enum.Tlm_CODE_HK
)
tlm_HK = wings.util.generate_and_receive_tlm(
ope, c2a_enum.Cmd_CODE_TG_GENERATE_RT_TLM, c2a_enum.Tlm_CODE_HK
)
assert tlm_HK["HK.WDT.TIMER"] == 1000


@pytest.mark.real
def test_wdt_at_real():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: a6ac3f58e1422615904c43d389e64877
* CSV files MD5: 21799e92eda843366bac3e516838b31a
* @note コード生成パラメータ:
* db_prefix: SAMPLE_MOBC
* tlm_id_range: [0x00, 0x100]
Expand Down
4 changes: 3 additions & 1 deletion examples/mobc/src/src_user/tlm_cmd/command_definitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @note このコードは自動生成されています!
* @note コード生成元 tlm-cmd-db:
* repository: github.com/arkedge/c2a-core.git
* CSV files MD5: a6ac3f58e1422615904c43d389e64877
* CSV files MD5: 21799e92eda843366bac3e516838b31a
* @note コード生成パラメータ:
* db_prefix: SAMPLE_MOBC
* tlm_id_range: [0x00, 0x100]
Expand Down Expand Up @@ -193,6 +193,7 @@ void CA_load_cmd_table(CA_CmdInfo cmd_table[CA_MAX_CMDS])
cmd_table[Cmd_CODE_WDT_DISABLE].cmd_func = Cmd_WDT_DISABLE;
cmd_table[Cmd_CODE_WDT_STOP_CLEAR].cmd_func = Cmd_WDT_STOP_CLEAR;
cmd_table[Cmd_CODE_WDT_START_CLEAR].cmd_func = Cmd_WDT_START_CLEAR;
cmd_table[Cmd_CODE_WDT_SET_TIMER].cmd_func = Cmd_WDT_SET_TIMER;
cmd_table[Cmd_CODE_UART_TEST_INIT_CSRV].cmd_func = Cmd_UART_TEST_INIT_CSRV;
cmd_table[Cmd_CODE_UART_TEST_UPDATE].cmd_func = Cmd_UART_TEST_UPDATE;
cmd_table[Cmd_CODE_UART_TEST_SEND_TEST].cmd_func = Cmd_UART_TEST_SEND_TEST;
Expand Down Expand Up @@ -420,6 +421,7 @@ void CA_load_cmd_table(CA_CmdInfo cmd_table[CA_MAX_CMDS])
cmd_table[Cmd_CODE_CSRV_GS_SET_FARM_PW].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_1BYTE;
cmd_table[Cmd_CODE_CSRV_GS_SET_INFO].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_1BYTE;
cmd_table[Cmd_CODE_CSRV_GS_CCSDS_SET_RATE].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_1BYTE;
cmd_table[Cmd_CODE_WDT_SET_TIMER].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_4BYTE;
cmd_table[Cmd_CODE_UART_TEST_SEND_TEST].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_1BYTE;
cmd_table[Cmd_CODE_UTIL_CMD_ADD].param_size_infos[0].packed_info.bit.first = CA_PARAM_SIZE_TYPE_1BYTE;
cmd_table[Cmd_CODE_UTIL_CMD_ADD].param_size_infos[0].packed_info.bit.second = CA_PARAM_SIZE_TYPE_4BYTE;
Expand Down
Loading
Loading