Open FFBoard
Open source force feedback firmware
usb_descriptors.cpp File Reference

Go to the source code of this file.

Variables

const tusb_desc_device_t usb_devdesc_ffboard_composite
 
const uint8_t usb_cdc_conf []
 
const uint8_t usb_cdc_hid_conf_1axis []
 
const uint8_t usb_cdc_hid_conf_2axis []
 
const uint8_t usb_cdc_hid_conf_gamepad []
 
uint8_t const usb_cdc_midi_conf []
 
const usb_string_desc_t usb_ffboard_strings_default
 

Variable Documentation

◆ usb_cdc_conf

const uint8_t usb_cdc_conf[]
Initial value:
=
{
TUD_CONFIG_DESCRIPTOR(1, 2, 0, (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN), TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
TUD_CDC_DESCRIPTOR(0, 4, 0x82, 8, 0x01, 0x81, 64),
}
@ TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP
Definition: tusb_types.h:218

Definition at line 48 of file usb_descriptors.cpp.

◆ usb_cdc_hid_conf_1axis

const uint8_t usb_cdc_hid_conf_1axis[]
Initial value:
=
{
TUD_CONFIG_DESCRIPTOR(1, 3, 0, (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN + TUD_HID_INOUT_DESC_LEN), TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
TUD_CDC_DESCRIPTOR(0, 4, 0x82, 8, 0x01, 0x81, 64),
TUD_HID_INOUT_DESCRIPTOR(2, 5, HID_ITF_PROTOCOL_NONE, USB_HID_1FFB_REPORT_DESC_SIZE, 0x83, 0x02, 64, HID_BINTERVAL),
}
@ HID_ITF_PROTOCOL_NONE
None.
Definition: hid.h:70

Definition at line 59 of file usb_descriptors.cpp.

◆ usb_cdc_hid_conf_2axis

const uint8_t usb_cdc_hid_conf_2axis[]
Initial value:
=
{
TUD_CONFIG_DESCRIPTOR(1, 3, 0, (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN + TUD_HID_INOUT_DESC_LEN), TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
TUD_CDC_DESCRIPTOR(0, 4, 0x82, 8, 0x01, 0x81, 64),
TUD_HID_INOUT_DESCRIPTOR(2, 5, HID_ITF_PROTOCOL_NONE, USB_HID_2FFB_REPORT_DESC_SIZE, 0x83, 0x02, 64, HID_BINTERVAL),
}

Definition at line 74 of file usb_descriptors.cpp.

◆ usb_cdc_hid_conf_gamepad

const uint8_t usb_cdc_hid_conf_gamepad[]
Initial value:
=
{
TUD_CONFIG_DESCRIPTOR(1, 3, 0, (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN + TUD_HID_INOUT_DESC_LEN), TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
TUD_CDC_DESCRIPTOR(0, 4, 0x82, 8, 0x01, 0x81, 64),
TUD_HID_INOUT_DESCRIPTOR(2, 5, HID_ITF_PROTOCOL_NONE, USB_HID_GAMEPAD_REPORT_DESC_SIZE, 0x83, 0x02, 64, HID_BINTERVAL),
}

Definition at line 89 of file usb_descriptors.cpp.

◆ usb_cdc_midi_conf

uint8_t const usb_cdc_midi_conf[]
Initial value:
=
{
TUD_CONFIG_DESCRIPTOR(1, 4, 0, TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN + TUD_MIDI_DESC_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
TUD_CDC_DESCRIPTOR(0, 4, 0x82, 8, 0x01, 0x81, 64),
TUD_MIDI_DESCRIPTOR(2, 6, 0x02, 0x83, 64)
}

Definition at line 103 of file usb_descriptors.cpp.

◆ usb_devdesc_ffboard_composite

const tusb_desc_device_t usb_devdesc_ffboard_composite
Initial value:
=
{
.bLength = sizeof(tusb_desc_device_t),
.bDescriptorType = TUSB_DESC_DEVICE,
.bcdUSB = 0x0200,
.bDeviceClass = TUSB_CLASS_MISC,
.bDeviceSubClass = MISC_SUBCLASS_COMMON,
.bDeviceProtocol = MISC_PROTOCOL_IAD,
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
.idVendor = USBD_VID,
.idProduct = USBD_PID,
.bcdDevice = 0x0100,
.iManufacturer = 0x01,
.iProduct = 0x02,
.iSerialNumber = 0x03,
.bNumConfigurations = 0x01
}
@ MISC_SUBCLASS_COMMON
Definition: tusb_types.h:186
@ TUSB_CLASS_MISC
Definition: tusb_types.h:179
TU_ATTR_PACKED_BEGIN TU_ATTR_BIT_FIELD_ORDER_BEGIN struct TU_ATTR_PACKED tusb_desc_device_t
USB Device Descriptor.
@ MISC_PROTOCOL_IAD
Definition: tusb_types.h:190
@ TUSB_DESC_DEVICE
Definition: tusb_types.h:93

Definition at line 19 of file usb_descriptors.cpp.

◆ usb_ffboard_strings_default

const usb_string_desc_t usb_ffboard_strings_default
Initial value:
= {
.langId = 0x0409,
.manufacturer = "Open FFBoard",
.product = "FFBoard",
.interfaces = {"FFBoard CDC", "FFBoard HID","FFBoard MIDI"}
}

Definition at line 118 of file usb_descriptors.cpp.