// Auto-generated template file: command_LASTCOMMANDTIME.tpl.c // Generation timestamp: 2021-06-21 19:42:34.864200 #include "../typedefs.h" #include "../communication.h" #include "../hardware.h" err_t command_LASTCOMMANDTIME(void) { // Command: LASTCOMMANDTIME // Description: Time since last command // // Request code: CMDCODE_LASTCOMMANDTIME_REQ // Response code: CMDCODE_LASTCOMMANDTIME_REQ // Request payload (length in bytes is 0): // Response payload (length in bytes is 4): // field #0 (4 bytes) [type: uint32_t ] : SECONDS (Seconds since last command) // Auto-generated section: request payload fields reading // End of auto-generated section // USER CODE HERE // TODO implement command callback function command_LASTCOMMANDTIME // TODO: assign response field SECONDS in command LASTCOMMANDTIME callback uint32_t resp_seconds = -1; // Auto-generated section: response payload fields writing communication_response_payload_appender_reset(); communication_response_payload_append_uint32_t((uint32_t)resp_seconds); return NOERR; // End of auto-generated section }