What is the buffer length in USB HID in kl82z?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

What is the buffer length in USB HID in kl82z?

1,039件の閲覧回数
rysardsuboc
Contributor II

In usb_device_descriptor.h file is defined buffers and packets sizes.

Why buffer size is 8 Bytes?

Can increase the buffer? 

How many possible increase the buffer? What is maximum size of buffers?

#define USB_HID_GENERIC_IN_BUFFER_LENGTH (8U)
#define USB_HID_GENERIC_OUT_BUFFER_LENGTH (8U)
...

#define HS_HID_GENERIC_INTERRUPT_OUT_PACKET_SIZE (8U)
#define FS_HID_GENERIC_INTERRUPT_OUT_PACKET_SIZE (8U)
#define HS_HID_GENERIC_INTERRUPT_OUT_INTERVAL (0x4U) /* 2^(4-1) = 1ms */
#define FS_HID_GENERIC_INTERRUPT_OUT_INTERVAL (0x01U)

#define HS_HID_GENERIC_INTERRUPT_IN_PACKET_SIZE (8U)
#define FS_HID_GENERIC_INTERRUPT_IN_PACKET_SIZE (8U)
#define HS_HID_GENERIC_INTERRUPT_IN_INTERVAL (0x4U) /* 2^(4-1) = 1ms */
#define FS_HID_GENERIC_INTERRUPT_IN_INTERVAL (0x01U)

0 件の賞賛
返信
1 返信

781件の閲覧回数
bobpaddock
Senior Contributor III

The maximum buffer size of a HID packet is 64 bytes for USB 2.0 and up.

USB.org - HID Tools 

Jan Axelson's Lakeview Research book "USB Complete" is a thorough introduction to USB.

0 件の賞賛
返信