30 lines
1023 B
C
30 lines
1023 B
C
#ifndef _UPC_COMM_TASK_H_
|
|
#define _UPC_COMM_TASK_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#define PLAT_ACK_MESSAGE_ID 0x8000
|
|
#define PLAT_CONF_TERMINAL_TIME_MESSAGE_ID 0x8002
|
|
#define PLAT_ASK_TERMINAL_DATA_MESSAGE_ID 0x800b
|
|
#define PLAT_ASK_TERMINAL_FILE_MESSAGE_ID 0x800e
|
|
#define PLAT_ASK_TERMINAL_RESTART_MESSAGE_ID 0x8011
|
|
#define PLAT_ASK_MODIFY_NET_MESSAGE_ID 0x8013
|
|
|
|
#define PLAT_CONF_RELAY_CONTROL_MESSAGE_ID 0X8100
|
|
|
|
#define TASK_ACK_OK 0x00
|
|
#define TASK_ACK_NO_EXSIT 0x01
|
|
#define TASK_ACK_ERR 0x02
|
|
#define TASK_ACK_NO_SUP 0x03
|
|
|
|
void TaskUpcCommInit(void);
|
|
void TaskUpcCommRecv(void *arg); // 接收处理任务
|
|
void TaskUpcCommExtractData(void* arg); // 数据分拣任务
|
|
void TaskUpcCommHandleData(void* arg); // 数据解析任务
|
|
/* 发送函数 */
|
|
uint32_t TaskUpcCommSendMessage(uint16_t MessageId, uint16_t *Serial, uint8_t *SendBuf, uint32_t SendBufLen);
|
|
|
|
#endif
|