Choose the class first, then use Apply profile packet defaults. Review custom packet or service settings after that.
|
Setting |
Meaning, accepted values and generic default |
|
USB_MODE |
Device class: 0 HID, 1 CDC serial, 2 MSC fixed virtual files, 3 USB browser/RNDIS. Default 0. Select one class. |
|
USB_SERVICE_MODE |
0 foreground polling; 1 hardware USB interrupt. Default 0. Browser mode requires polling. MSC file handling remains foreground work even with interrupts. |
|
USB_TRANSFER |
Data endpoint type: 1 interrupt for HID; 0 bulk for CDC, MSC and browser. Class selection sets this. It is independent of firmware polling/ISR selection. |
|
USB_PINGPONG |
Enable additional USB packet buffers where permitted. Default off. Uses more RAM; does not enlarge the 64-byte packet maximum. MSC, browser and the PIC16F/LF145x implementation require off. |
|
USB_HAS_PP3 |
Target-specific permission for its supported buffering arrangement. Keep the selected device's value; this is not a request to enable ping-pong. |
|
USB_EP0_SIZE |
Control packet bytes: 8, 16, 32 or 64; generic default 8. Browser requires 16. This is the enumeration/control endpoint, not your application report size. |
|
USB_TX_SIZE |
Maximum IN packet/report bytes, PIC to PC: 1–64 for HID, with profile restrictions below. Generic default 64. |
|
USB_RX_SIZE |
Maximum OUT packet/report bytes, PC to PIC: 1–64 for HID, with profile restrictions below. Generic default 64. |
|
USB_IN_INTERVAL |
HID IN polling interval, 1–255 milliseconds; default 1. It describes host polling, not an application send timer. |
|
USB_OUT_INTERVAL |
HID OUT polling interval, 1–255 milliseconds; default 1. Inactive for profiles without a data OUT endpoint. |
|
USB_TRN_BUDGET |
Maximum completed USB transactions processed during one service pass, 1–255; default 8. Bounds work per pass. Continue servicing regularly. |
CDC bulk packet sizes must be 8, 16, 32 or 64. MSC and browser require TX/RX 64/64. Built-in HID TX sizes are keyboard 8, mouse 3, joystick 6, and consumer control 2; each uses an RX setting of 1. Mouse, joystick and consumer control are input-only, so that RX setting does not create an application OUT endpoint. HID Data/custom descriptors must agree with their report sizes.
Created with the Personal Edition of HelpNDoc: Maximize Your PDF Protection with These Simple Steps