29 lines
474 B
C
29 lines
474 B
C
/*
|
|
* usb.h
|
|
*
|
|
* This module has the wrapper functions to access USB driver functions.
|
|
*
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
|
|
* ALL RIGHTS RESERVED
|
|
*
|
|
*/
|
|
|
|
#ifndef USB_H
|
|
#define USB_H
|
|
|
|
#define USB_MIN_PACKET_SIZE 64
|
|
#define USB_MAX_PACKET_SIZE 64
|
|
|
|
#define MY_VID 0x0451
|
|
#define MY_PID 0x6401
|
|
|
|
int USB_Open(void);
|
|
bool USB_IsConnected();
|
|
int USB_Write();
|
|
int USB_Read();
|
|
int USB_Close();
|
|
int USB_Init();
|
|
int USB_Exit();
|
|
|
|
#endif //USB_H
|