More improvements to the incomplete BluetoothHost demo - add Disconnection Event processing.
Remove unused macro in the host mode demos for the maximum Configuration Descriptor size.
This commit is contained in:
parent
a2e6d54336
commit
fd96b28882
24 changed files with 229 additions and 187 deletions
|
@ -44,9 +44,6 @@
|
|||
/* Macros: */
|
||||
/** Interface Class value for the Human Interface Device class */
|
||||
#define HID_CLASS 0x03
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -48,9 +48,6 @@
|
|||
/** Interface Protocol value for a Boot Protocol Mouse compliant device */
|
||||
#define JOYSTICK_PROTOCOL 0x02
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/** Descriptor header type constant for a HID descriptor */
|
||||
#define DTYPE_HID 0x21
|
||||
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
|
||||
/** Interface Protocol value for a Boot Protocol Keyboard compliant device */
|
||||
#define KEYBOARD_PROTOCOL 0x01
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
|
||||
/** Interface Protocol value for a Boot Protocol Keyboard compliant device */
|
||||
#define KEYBOARD_PROTOCOL 0x01
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/** Descriptor header type constant for a HID descriptor */
|
||||
#define DTYPE_HID 0x21
|
||||
|
|
|
@ -50,9 +50,6 @@
|
|||
|
||||
/** Interface Class value for the MIDI Audio Streaming protocol */
|
||||
#define MIDI_STREAMING_PROTOCOL 0x00
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -50,9 +50,6 @@
|
|||
|
||||
/** Interface Protocol value for the Bulk Only transport protocol */
|
||||
#define MASS_STORE_PROTOCOL 0x50
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
|
||||
/** Interface Protocol value for a Boot Protocol Mouse compliant device */
|
||||
#define MOUSE_PROTOCOL 0x02
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -47,10 +47,7 @@
|
|||
|
||||
/** Interface Protocol value for a Boot Protocol Mouse compliant device */
|
||||
#define MOUSE_PROTOCOL 0x02
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
|
||||
/** Descriptor header type constant for a HID descriptor */
|
||||
#define DTYPE_HID 0x21
|
||||
|
||||
|
|
|
@ -46,9 +46,6 @@
|
|||
|
||||
/** Interface Protocol value for a Bidirectional communication encapsulation */
|
||||
#define PRINTER_PROTOCOL 0x02
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -59,9 +59,6 @@
|
|||
|
||||
/** Interface Class value for the CDC data protocol */
|
||||
#define CDC_DATA_PROTOCOL 0x00
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -50,9 +50,6 @@
|
|||
|
||||
/** Interface Class value for the Still Image Device protocol */
|
||||
#define SIMAGE_PROTOCOL 0x01
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
|
@ -59,9 +59,6 @@
|
|||
|
||||
/** Interface Class value for the CDC data protocol */
|
||||
#define CDC_DATA_PROTOCOL 0x00
|
||||
|
||||
/** Maximum size of a device configuration descriptor which can be processed by the host, in bytes */
|
||||
#define MAX_CONFIG_DESCRIPTOR_SIZE 512
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the ProcessConfigurationDescriptor() function. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue