Files | Macros
usbconfig

Configuration header for the USB module. More...

+ Collaboration diagram for usbconfig:

Files

file  usbconfig.h
 

Macros

#define BCDS_PRODUCT_NAME   'X','D','K',' ','A','p','p','l','i','c','a','t','i','o','n',
 
#define BCDS_SERIAL_NO   '1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6'
 
#define NUM_APP_TIMERS   UINT8_C(0)
 
#define NUM_EP_USED   UINT8_C(3)
 
#define USB_BULK_SIZE   UINT8_C(64)
 
#define USB_DEVICE
 
#define USB_PRODUCT_ID   0x017B
 
#define USB_SERIAL_NUMBER_LENGTH   UINT8_C(16)
 
#define USB_SET_BAUDRATE   UINT32_C(0)
 
#define USB_SET_DATA_BITS   UINT8_C(0)
 
#define USB_SET_PARITY   UINT8_C(0)
 
#define USB_SET_STOPBITS_MODE   UINT8_C(0)
 
#define USB_TIMER   USB_TIMER1
 
#define USB_USE_PRINTF
 

Detailed Description

USB

Macro Definition Documentation

#define BCDS_PRODUCT_NAME   'X','D','K',' ','A','p','p','l','i','c','a','t','i','o','n',

The product name is defined here

#define BCDS_SERIAL_NO   '1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6'

The Serial number is defined here retargetio.c must be included if you are enabling USB_USE_PRINTF

#define NUM_APP_TIMERS   UINT8_C(0)

Specify number of application timers you need. Receving or Transmitting Data is not dependent of this macro.

#define NUM_EP_USED   UINT8_C(3)

Specify number of endpoints used (in addition to EP0).

#define USB_BULK_SIZE   UINT8_C(64)

This is the max. packet size.

#define USB_DEVICE

USB DEVICE mode or HOST mode must be defined

#define USB_PRODUCT_ID   0x017B

The product Id is defined here

#define USB_SERIAL_NUMBER_LENGTH   UINT8_C(16)
#define USB_SET_BAUDRATE   UINT32_C(0)

Baudrate. Receving or Transmitting Data is not dependent of this macro.

#define USB_SET_DATA_BITS   UINT8_C(0)

0, 5, 6, 7, 8 or 16. Receving or Transmitting Data is not dependent of this macro.

#define USB_SET_PARITY   UINT8_C(0)

0=None 1=Odd 2=Even 3=Mark 4=Space. Receving or Transmitting Data is not dependent of this macro.

#define USB_SET_STOPBITS_MODE   UINT8_C(0)

Stop bits, 0=1 1=1.5 2=2. Receving or Transmitting Data is not dependent of this macro.

#define USB_TIMER   USB_TIMER1

Specify the TImer1 for the USB_TIMER

#define USB_USE_PRINTF

When using printf , the string is retargetted to USB . The transfer is blocking at present.


This documentation file has been automatically generated on Fri Oct 4 2019 03:47:33 by doxygen 1.8.8