/* * * SPDX-License-Identifier: Apache-2.0 * */ #include "SID37_RequestTransferExit.h" #include "service_cfg.h" #include "uds_def.h" /****************************************************************************** * 函数名称: bool_t service_37_check_len(const uint8_t* msg_buf, uint16_t msg_dlc) * 功能说明: 检查 37 服务数据长度是否合法 * 输入参数: uint16_t msg_dlc --数据长度 * 输出参数: 无 * 函数返回: TRUE: 合法; FALSE: 非法 * 其它说明: 无 ******************************************************************************/ bool_t service_37_check_len(const uint8_t *msg_buf, uint16_t msg_dlc) { bool_t ret = FALSE; ret = TRUE; return ret; } /****************************************************************************** * 函数名称: void service_37_RequestTransferExit(const uint8_t* msg_buf, uint16_t msg_dlc) * 功能说明: 37 服务 - 请求退出传输 * 输入参数: uint8_t* msg_buf --数据首地址     uint8_t msg_dlc --数据长度 * 输出参数: 无 * 函数返回: 无 * 其它说明: 无 ******************************************************************************/ void service_37_RequestTransferExit(const uint8_t *msg_buf, uint16_t msg_dlc) { uint8_t rsp_buf[8]; if (transfer_file != NULL) { printf("Transfer exit requested. Closing file.\n"); fclose(transfer_file); transfer_file = NULL; } rsp_buf[0] = USD_GET_POSITIVE_RSP(SID_37); uds_positive_rsp(rsp_buf, 1); } /****************EOF****************/