// Auto-generated template file: command_ECHO32.tpl.c // Generation timestamp: 2021-06-21 19:42:34.864200 #include "../typedefs.h" #include "../communication.h" #include "../hardware.h" err_t command_ECHO32(void) { // Command: ECHO32 // Description: Echo (32 bytes) // // Request code: CMDCODE_ECHO32_REQ // Response code: CMDCODE_ECHO32_REQ // Request payload (length in bytes is 32): // field #0 (1 byte) [type: uint8_t ] : VALUE_0 (Echoed byte) // field #1 (1 byte) [type: uint8_t ] : VALUE_1 (Echoed byte) // field #2 (1 byte) [type: uint8_t ] : VALUE_2 (Echoed byte) // field #3 (1 byte) [type: uint8_t ] : VALUE_3 (Echoed byte) // field #4 (1 byte) [type: uint8_t ] : VALUE_4 (Echoed byte) // field #5 (1 byte) [type: uint8_t ] : VALUE_5 (Echoed byte) // field #6 (1 byte) [type: uint8_t ] : VALUE_6 (Echoed byte) // field #7 (1 byte) [type: uint8_t ] : VALUE_7 (Echoed byte) // field #8 (1 byte) [type: uint8_t ] : VALUE_8 (Echoed byte) // field #9 (1 byte) [type: uint8_t ] : VALUE_9 (Echoed byte) // field #10 (1 byte) [type: uint8_t ] : VALUE_10 (Echoed byte) // field #11 (1 byte) [type: uint8_t ] : VALUE_11 (Echoed byte) // field #12 (1 byte) [type: uint8_t ] : VALUE_12 (Echoed byte) // field #13 (1 byte) [type: uint8_t ] : VALUE_13 (Echoed byte) // field #14 (1 byte) [type: uint8_t ] : VALUE_14 (Echoed byte) // field #15 (1 byte) [type: uint8_t ] : VALUE_15 (Echoed byte) // field #16 (1 byte) [type: uint8_t ] : VALUE_16 (Echoed byte) // field #17 (1 byte) [type: uint8_t ] : VALUE_17 (Echoed byte) // field #18 (1 byte) [type: uint8_t ] : VALUE_18 (Echoed byte) // field #19 (1 byte) [type: uint8_t ] : VALUE_19 (Echoed byte) // field #20 (1 byte) [type: uint8_t ] : VALUE_20 (Echoed byte) // field #21 (1 byte) [type: uint8_t ] : VALUE_21 (Echoed byte) // field #22 (1 byte) [type: uint8_t ] : VALUE_22 (Echoed byte) // field #23 (1 byte) [type: uint8_t ] : VALUE_23 (Echoed byte) // field #24 (1 byte) [type: uint8_t ] : VALUE_24 (Echoed byte) // field #25 (1 byte) [type: uint8_t ] : VALUE_25 (Echoed byte) // field #26 (1 byte) [type: uint8_t ] : VALUE_26 (Echoed byte) // field #27 (1 byte) [type: uint8_t ] : VALUE_27 (Echoed byte) // field #28 (1 byte) [type: uint8_t ] : VALUE_28 (Echoed byte) // field #29 (1 byte) [type: uint8_t ] : VALUE_29 (Echoed byte) // field #30 (1 byte) [type: uint8_t ] : VALUE_30 (Echoed byte) // field #31 (1 byte) [type: uint8_t ] : VALUE_31 (Echoed byte) // Response payload (length in bytes is 32): // field #0 (1 byte) [type: uint8_t ] : VALUE_0 (Echoed byte) // field #1 (1 byte) [type: uint8_t ] : VALUE_1 (Echoed byte) // field #2 (1 byte) [type: uint8_t ] : VALUE_2 (Echoed byte) // field #3 (1 byte) [type: uint8_t ] : VALUE_3 (Echoed byte) // field #4 (1 byte) [type: uint8_t ] : VALUE_4 (Echoed byte) // field #5 (1 byte) [type: uint8_t ] : VALUE_5 (Echoed byte) // field #6 (1 byte) [type: uint8_t ] : VALUE_6 (Echoed byte) // field #7 (1 byte) [type: uint8_t ] : VALUE_7 (Echoed byte) // field #8 (1 byte) [type: uint8_t ] : VALUE_8 (Echoed byte) // field #9 (1 byte) [type: uint8_t ] : VALUE_9 (Echoed byte) // field #10 (1 byte) [type: uint8_t ] : VALUE_10 (Echoed byte) // field #11 (1 byte) [type: uint8_t ] : VALUE_11 (Echoed byte) // field #12 (1 byte) [type: uint8_t ] : VALUE_12 (Echoed byte) // field #13 (1 byte) [type: uint8_t ] : VALUE_13 (Echoed byte) // field #14 (1 byte) [type: uint8_t ] : VALUE_14 (Echoed byte) // field #15 (1 byte) [type: uint8_t ] : VALUE_15 (Echoed byte) // field #16 (1 byte) [type: uint8_t ] : VALUE_16 (Echoed byte) // field #17 (1 byte) [type: uint8_t ] : VALUE_17 (Echoed byte) // field #18 (1 byte) [type: uint8_t ] : VALUE_18 (Echoed byte) // field #19 (1 byte) [type: uint8_t ] : VALUE_19 (Echoed byte) // field #20 (1 byte) [type: uint8_t ] : VALUE_20 (Echoed byte) // field #21 (1 byte) [type: uint8_t ] : VALUE_21 (Echoed byte) // field #22 (1 byte) [type: uint8_t ] : VALUE_22 (Echoed byte) // field #23 (1 byte) [type: uint8_t ] : VALUE_23 (Echoed byte) // field #24 (1 byte) [type: uint8_t ] : VALUE_24 (Echoed byte) // field #25 (1 byte) [type: uint8_t ] : VALUE_25 (Echoed byte) // field #26 (1 byte) [type: uint8_t ] : VALUE_26 (Echoed byte) // field #27 (1 byte) [type: uint8_t ] : VALUE_27 (Echoed byte) // field #28 (1 byte) [type: uint8_t ] : VALUE_28 (Echoed byte) // field #29 (1 byte) [type: uint8_t ] : VALUE_29 (Echoed byte) // field #30 (1 byte) [type: uint8_t ] : VALUE_30 (Echoed byte) // field #31 (1 byte) [type: uint8_t ] : VALUE_31 (Echoed byte) // Auto-generated section: request payload fields reading uint8_t req_value_0 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_1 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_2 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_3 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_4 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_5 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_6 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_7 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_8 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_9 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_10 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_11 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_12 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_13 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_14 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_15 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_16 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_17 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_18 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_19 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_20 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_21 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_22 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_23 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_24 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_25 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_26 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_27 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_28 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_29 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_30 = (uint8_t)communication_request_payload_retrieve_uint8_t(); uint8_t req_value_31 = (uint8_t)communication_request_payload_retrieve_uint8_t(); // End of auto-generated section // USER CODE HERE // TODO implement command callback function command_ECHO32 // TODO: assign response field VALUE_0 in command ECHO32 callback uint8_t resp_value_0 = -1; // TODO: assign response field VALUE_1 in command ECHO32 callback uint8_t resp_value_1 = -1; // TODO: assign response field VALUE_2 in command ECHO32 callback uint8_t resp_value_2 = -1; // TODO: assign response field VALUE_3 in command ECHO32 callback uint8_t resp_value_3 = -1; // TODO: assign response field VALUE_4 in command ECHO32 callback uint8_t resp_value_4 = -1; // TODO: assign response field VALUE_5 in command ECHO32 callback uint8_t resp_value_5 = -1; // TODO: assign response field VALUE_6 in command ECHO32 callback uint8_t resp_value_6 = -1; // TODO: assign response field VALUE_7 in command ECHO32 callback uint8_t resp_value_7 = -1; // TODO: assign response field VALUE_8 in command ECHO32 callback uint8_t resp_value_8 = -1; // TODO: assign response field VALUE_9 in command ECHO32 callback uint8_t resp_value_9 = -1; // TODO: assign response field VALUE_10 in command ECHO32 callback uint8_t resp_value_10 = -1; // TODO: assign response field VALUE_11 in command ECHO32 callback uint8_t resp_value_11 = -1; // TODO: assign response field VALUE_12 in command ECHO32 callback uint8_t resp_value_12 = -1; // TODO: assign response field VALUE_13 in command ECHO32 callback uint8_t resp_value_13 = -1; // TODO: assign response field VALUE_14 in command ECHO32 callback uint8_t resp_value_14 = -1; // TODO: assign response field VALUE_15 in command ECHO32 callback uint8_t resp_value_15 = -1; // TODO: assign response field VALUE_16 in command ECHO32 callback uint8_t resp_value_16 = -1; // TODO: assign response field VALUE_17 in command ECHO32 callback uint8_t resp_value_17 = -1; // TODO: assign response field VALUE_18 in command ECHO32 callback uint8_t resp_value_18 = -1; // TODO: assign response field VALUE_19 in command ECHO32 callback uint8_t resp_value_19 = -1; // TODO: assign response field VALUE_20 in command ECHO32 callback uint8_t resp_value_20 = -1; // TODO: assign response field VALUE_21 in command ECHO32 callback uint8_t resp_value_21 = -1; // TODO: assign response field VALUE_22 in command ECHO32 callback uint8_t resp_value_22 = -1; // TODO: assign response field VALUE_23 in command ECHO32 callback uint8_t resp_value_23 = -1; // TODO: assign response field VALUE_24 in command ECHO32 callback uint8_t resp_value_24 = -1; // TODO: assign response field VALUE_25 in command ECHO32 callback uint8_t resp_value_25 = -1; // TODO: assign response field VALUE_26 in command ECHO32 callback uint8_t resp_value_26 = -1; // TODO: assign response field VALUE_27 in command ECHO32 callback uint8_t resp_value_27 = -1; // TODO: assign response field VALUE_28 in command ECHO32 callback uint8_t resp_value_28 = -1; // TODO: assign response field VALUE_29 in command ECHO32 callback uint8_t resp_value_29 = -1; // TODO: assign response field VALUE_30 in command ECHO32 callback uint8_t resp_value_30 = -1; // TODO: assign response field VALUE_31 in command ECHO32 callback uint8_t resp_value_31 = -1; // Auto-generated section: response payload fields writing communication_response_payload_appender_reset(); communication_response_payload_append_uint8_t((uint8_t)resp_value_0); communication_response_payload_append_uint8_t((uint8_t)resp_value_1); communication_response_payload_append_uint8_t((uint8_t)resp_value_2); communication_response_payload_append_uint8_t((uint8_t)resp_value_3); communication_response_payload_append_uint8_t((uint8_t)resp_value_4); communication_response_payload_append_uint8_t((uint8_t)resp_value_5); communication_response_payload_append_uint8_t((uint8_t)resp_value_6); communication_response_payload_append_uint8_t((uint8_t)resp_value_7); communication_response_payload_append_uint8_t((uint8_t)resp_value_8); communication_response_payload_append_uint8_t((uint8_t)resp_value_9); communication_response_payload_append_uint8_t((uint8_t)resp_value_10); communication_response_payload_append_uint8_t((uint8_t)resp_value_11); communication_response_payload_append_uint8_t((uint8_t)resp_value_12); communication_response_payload_append_uint8_t((uint8_t)resp_value_13); communication_response_payload_append_uint8_t((uint8_t)resp_value_14); communication_response_payload_append_uint8_t((uint8_t)resp_value_15); communication_response_payload_append_uint8_t((uint8_t)resp_value_16); communication_response_payload_append_uint8_t((uint8_t)resp_value_17); communication_response_payload_append_uint8_t((uint8_t)resp_value_18); communication_response_payload_append_uint8_t((uint8_t)resp_value_19); communication_response_payload_append_uint8_t((uint8_t)resp_value_20); communication_response_payload_append_uint8_t((uint8_t)resp_value_21); communication_response_payload_append_uint8_t((uint8_t)resp_value_22); communication_response_payload_append_uint8_t((uint8_t)resp_value_23); communication_response_payload_append_uint8_t((uint8_t)resp_value_24); communication_response_payload_append_uint8_t((uint8_t)resp_value_25); communication_response_payload_append_uint8_t((uint8_t)resp_value_26); communication_response_payload_append_uint8_t((uint8_t)resp_value_27); communication_response_payload_append_uint8_t((uint8_t)resp_value_28); communication_response_payload_append_uint8_t((uint8_t)resp_value_29); communication_response_payload_append_uint8_t((uint8_t)resp_value_30); communication_response_payload_append_uint8_t((uint8_t)resp_value_31); return NOERR; // End of auto-generated section }