
/******************************************************************
*  Copyright (C) 2023 - 2023 OneChip, Inc. All rights reserved.
* File name: van_bsp_uart_fun.h
* Author: fanyidong 	 Date:2020.11.21
* Description:		STM32串口接收函数
* Others:
* History:
        1. Date:
                 Author:
                 Modification:

*****************************************************************/
#ifndef VAN_BSP_UART_FUN_H
#define VAN_BSP_UART_FUN_H

typedef enum
{
	MSG_SYS_CTR = 0x03,/*工作指令*/
	MSG_DEV_RPT = 0x04,/*设备上报*/
	MSG_DEV_RECFLAG = 0x06,/*收到消息*/
	MSG_RAW_DATA_1 = 0x10,/*原始数据控制*/
} enMessagetype;



typedef enum
{
	RAW_V1_SET_PID_SEC_OFFSET = 10,/*设置分段校准参数*/
	RAW_V1_GET_PID_SEC_OFFSET = 11,/*获取分段校准参数*/
	RAW_V1_SET_PID_MULT_PRAM = 12,/*设置分段pid参数*/
	RAW_V1_GET_PID_MULT_PRAM = 13,/*获取分段pid参数*/
	RAW_V1_SET_PID_SINGEPIDOFFSET = 14,/*单独pid，偏移*/
	RAW_V1_GET_PID_SINGEPIDOFFSET = 15,/*获取分段pid参数*/
	RAW_V1_SET_QUADRATICFIT = 16,/*单独pid，偏移*/
	RAW_V1_GET_QUADRATICFIT = 17,/*获取分段pid参数*/
} enRawdataCmdtype;


/*通用消息结构体定义*/
typedef struct 
{
    unsigned int fuid;
    unsigned int cmd;
    char data[128];
} RawdataMessage,*P_RawdataMessage;



#endif
/* USER CODE END Private defines */
