Files
luban-lite/packages/artinchip/uds/UDSLogic/SID36_TransferData.c

55 lines
1.4 KiB
C
Raw Normal View History

2025-07-22 11:15:46 +08:00
/*
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "SID36_TransferData.h"
#include "service_cfg.h"
#include "uds_def.h"
/******************************************************************************
* : bool_t service_36_check_len(const uint8_t* msg_buf, uint16_t msg_dlc)
* : 36
* : uint16_t msg_dlc --
* :
* : TRUE: ; FALSE:
* :
******************************************************************************/
bool_t service_36_check_len(const uint8_t* msg_buf, uint16_t msg_dlc)
{
bool_t ret = FALSE;
ret = TRUE;
return ret;
}
/******************************************************************************
* : void service_36_TransferData(const uint8_t* msg_buf, uint16_t msg_dlc)
* : 36 -
* : uint8_t* msg_buf --
    uint8_t msg_dlc --
* :
* :
* :
******************************************************************************/
void service_36_TransferData(const uint8_t* msg_buf, uint16_t msg_dlc)
{
uint8_t rsp_buf[8];
uint8_t bn = 0;
// 这里需要解析 36 服务报文
bn = msg_buf[1];
rsp_buf[0] = USD_GET_POSITIVE_RSP(SID_36);
rsp_buf[1] = bn;
uds_positive_rsp(rsp_buf, 2);
}
/****************EOF****************/