28 lines
813 B
C
28 lines
813 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_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 TaskUpcComm(void* arg);
|
||
|
|
/* 发送函数 */
|
||
|
|
uint32_t TaskUpcCommSendMessage(uint16_t MessageId, uint16_t *Serial, uint8_t *SendBuf, uint32_t SendBufLen);
|
||
|
|
|
||
|
|
#endif
|