Using the QuickUSB Library
QuickUSB Settings
The QuickUSB module has certain settings that control the behavior of the
module. These functions manipulate those settings in order to customize the
module’s behavior for your particular needs. A list of settings follows:
Addr Name
Description
Values
0
SETTING_EP26CONFIG
Endpoint configuration
MSB=EP2CFG – Bit definitions:
Bit 15: Valid – Activates EP2
0 = EP2 Endpoint not activated
1 = EP2 Endpoint activated
Bit 14: Direction – Sets EP2
Direction
0 = Output
1 = Input
Bit 13-12: Type – Defines EP2
Type
00 = Invalid
01 = Isochronous
10 = Bulk
11 = Interrupt
Bit 11: Size – Sets Size of EP2
Buffer
0 = 512 Bytes
1 = 1024 Bytes
Bit 10: Unused R/O = 0
Bit 9-8: Buf – EP2 Buffer
Type/Amount
00 = Quad
01 = Invalid
10 = Double
11 = Triple
LSB=EP6CFG – Bit definitions:
Bit 15: Valid – Activates EP6
0 = EP6 Endpoint not activated
1 = EP6 Endpoint activated
(default)
Bit 14: Direction – Sets EP6
Direction
0 = Output
1 = Input
Bit 13-12: Type – Defines EP6
Type
00 = Invalid
01 = Isochronous
10 = Bulk
11 = Interrupt
Bit 11: Size – Sets Size of EP6
Buffer
0 = 512 Bytes
1 = 1024 Bytes
Bit 10: Unused R/O = 0
Bit 9-8: Buf – EP6 Buffer
Type/Amount
00 = Quad
01 = Invalid
10 = Double
11 = Triple
QuickUSB
Settings
45