
LZ85194
IrDA Control Peripheral Engine User
’
s Guide
69
[sswire.h]
/*****************************************************************************
*
*
sswire.h: Head file for Sswire definition of HC evaluation tool
*
*****************************************************************************/
#define RECV_DATA
#define GIVE_PERIPHERAL_INFO 0x20
#define EP1
#define EP3
#define FOR_EP0
#define FOR_EP2
#define FOR_EP1
#define FOR_EP3
#define TRUE
#define FALSE
0x10
/* received data from HC */
/* identifier information */
/* send data with Endpoint1 */
/* send data with Endpoint3 */
/* received data with Endpoint0 */
/* received data with Endpoint2 */
/* Report Desc. for Endpoint1 */
/* Report Desc. for Endpoint3 */
0x12
0x13
0x00
0x02
0x01
0x03
1
0
/*****************************************************************************
* Prototype Definitions
*****************************************************************************/
extern
void
manualEnumwithBinding(void);
extern
void
getMessage(void);
extern
char
decodeMID(char);
extern
char
recv_data(char);
extern
char
give_peripheral_info(char);
extern
void
setPeripheralInfo(char, char *, char);
extern
char
sendDatawithAck(char , char *, char);
/* ---------- end of file 'sswire.h' ---------- */
[const.h]
/*****************************************************************************
*
*
const.h : Head file for const definition of HC evaluation tool
*
*****************************************************************************/
typedef enum {
PERIPHERAL_INFO = 0,
DEVICE_DESCRIPTOR,
CONFIG_DESCRIPTOR,
STRING_DESCRIPTOR,
REPORT_DESCRIPTOR,
IRDA_C_DESCRIPTOR,
COPY_DESCRIPTOR,
GET_STATUS,
REPORT_DESCRIPTOR_EP1,
REPORT_DESCRIPTOR_EP3,
GET_MESSAGE,
SEND_DATA,
SEND_DATA_RETRY,
NO_EVENT = 0xFF
} event_t;
typedef enum {
CMD_GET_MESSAGE = 0x01,
CMD_MANUAL_ENUM_WITHBINDING = 0x08,
CMD_SEND_DATA_WITHACK = 0x0b,
CMD_SET_PERIPHERAL_INFO = 0x0e,
} cmd_t;
#define MAX_Q_SIZE
#define DATA_Q_SIZE
/* maximum of event queue size */
/* maximum of data queue size */
/* ---------- end of file 'const.h' ---------- */