-
Notifications
You must be signed in to change notification settings - Fork 57
/
uart.h
17 lines (14 loc) · 812 Bytes
/
uart.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __uart_H__
#define __uart_H__
#define MSG_TYPE_CONNECTED 0x01
#define MSG_TYPE_DISCONNECTED 0x02
#define MSG_TYPE_ERROR 0x03
#define MSG_TYPE_DEVICE_POLL 0x04
#define MSG_TYPE_DEVICE_STRING 0x05
#define MSG_TYPE_DEVICE_INFO 0x06
#define MSG_TYPE_HID_INFO 0x07
#define MSG_TYPE_STARTUP 0x08
void processUart();
void sendHidPollMSG(unsigned char msgtype, unsigned short length, unsigned char type, unsigned char device, unsigned char endpoint, unsigned char __xdata *msgbuffer,unsigned char idVendorL,unsigned char idVendorH,unsigned char idProductL,unsigned char idProductH);
void sendProtocolMSG(unsigned char msgtype, unsigned short length, unsigned char type, unsigned char device, unsigned char endpoint, unsigned char __xdata *msgbuffer);
#endif