mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-16 09:08:56 +00:00
57 lines
2.1 KiB
C
57 lines
2.1 KiB
C
/*
|
||
*
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*
|
||
*/
|
||
|
||
#ifndef _SID2E_SESSION_CONTROL_H_
|
||
#define _SID2E_SESSION_CONTROL_H_
|
||
|
||
#include <stdint.h>
|
||
#include "uds_def.h"
|
||
#include "uds_def.h"
|
||
|
||
/******************************************************************************
|
||
* 函数名称: void service_10_SessionControl(const uint8_t* msg_buf, uint16_t msg_dlc)
|
||
* 功能说明: 10 服务 - 诊断会话控制
|
||
* 输入参数: uint8_t* msg_buf --数据首地址
|
||
uint8_t msg_dlc --数据长度
|
||
* 输出参数: 无
|
||
* 函数返回: 无
|
||
* 其它说明: 无
|
||
******************************************************************************/
|
||
void service_10_SessionControl(const uint8_t *msg_buf, uint16_t msg_dlc);
|
||
|
||
/******************************************************************************
|
||
* 函数名称: bool_t service_10_check_len(const uint8_t* msg_buf, uint16_t msg_dlc)
|
||
* 功能说明: 检查 10 服务数据长度是否合法
|
||
* 输入参数: uint16_t msg_dlc --数据长度
|
||
* 输出参数: 无
|
||
* 函数返回: TRUE: 合法; FALSE: 非法
|
||
* 其它说明: 无
|
||
******************************************************************************/
|
||
bool_t service_10_check_len(const uint8_t *msg_buf, uint16_t msg_dlc);
|
||
|
||
/******************************************************************************
|
||
* 函数名称: void set_current_session(uds_session_t session)
|
||
* 功能说明: 设置当前诊断会话状态
|
||
* 输入参数: uds_session_t session --会话状态
|
||
* 输出参数: 无
|
||
* 函数返回: 无
|
||
* 其它说明: 无
|
||
******************************************************************************/
|
||
void set_current_session(uds_session_t session);
|
||
|
||
/******************************************************************************
|
||
* 函数名称: uds_session_t get_current_session(void)
|
||
* 功能说明: 读取当前诊断会话状态
|
||
* 输入参数: 无
|
||
* 输出参数: 无
|
||
* 函数返回: 当前会话状态
|
||
* 其它说明: 无
|
||
******************************************************************************/
|
||
uds_session_t get_current_session(void);
|
||
|
||
#endif
|
||
/****************EOF****************/
|