Files
luban-lite/packages/artinchip/uds/UDSLogic/SID28_CommunicationControl.h

44 lines
1.5 KiB
C
Raw Normal View History

2025-07-22 11:15:46 +08:00
/*
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _SID28_COMMUNICATION_CONTROL_H_
#define _SID28_COMMUNICATION_CONTROL_H_
#include <stdint.h>
#include "uds_def.h"
2025-10-21 13:59:50 +08:00
typedef enum __UDS_CC_MODE__ {
UDS_CC_MODE_RX_TX = 0, // 使能接收和发送
UDS_CC_MODE_RX_NO, // 使能接收、禁止发送
UDS_CC_MODE_NO_TX, // 禁止接收、使能发送
UDS_CC_MODE_NO_NO // 禁止接收、禁止发送
} uds_cc_mode;
2025-07-22 11:15:46 +08:00
/******************************************************************************
* : void service_28_CommunicationControl(const uint8_t* msg_buf, uint16_t msg_dlc)
* : 28 -
* : uint8_t* msg_buf --
    uint8_t msg_dlc --
* :
* :
* :
******************************************************************************/
2025-10-21 13:59:50 +08:00
void service_28_CommunicationControl(const uint8_t *msg_buf, uint16_t msg_dlc);
2025-07-22 11:15:46 +08:00
/******************************************************************************
* : bool_t service_28_check_len(const uint8_t* msg_buf, uint16_t msg_dlc)
* : 28
* : uint16_t msg_dlc --
* :
* : TRUE: ; FALSE:
* :
******************************************************************************/
2025-10-21 13:59:50 +08:00
bool_t service_28_check_len(const uint8_t *msg_buf, uint16_t msg_dlc);
2025-07-22 11:15:46 +08:00
#endif
/****************EOF****************/