diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-05 19:07:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-05 19:07:20 +0000 |
commit | 9ccf3eafad2a2ef23a8824f2e52ef788152cc1c1 (patch) | |
tree | 73939c87efaf994e340aee82859a9d94729b9265 /LUFA/Drivers/USB/USB.h | |
parent | 7f5445c8c6f0d67c0d5d3d0ed287c26e69d93d45 (diff) | |
download | lufa-9ccf3eafad2a2ef23a8824f2e52ef788152cc1c1.tar.gz lufa-9ccf3eafad2a2ef23a8824f2e52ef788152cc1c1.tar.bz2 lufa-9ccf3eafad2a2ef23a8824f2e52ef788152cc1c1.zip |
Add new Printer Device Class driver.
Diffstat (limited to 'LUFA/Drivers/USB/USB.h')
-rw-r--r-- | LUFA/Drivers/USB/USB.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/LUFA/Drivers/USB/USB.h b/LUFA/Drivers/USB/USB.h index b6cb4fc5e..1f38c0650 100644 --- a/LUFA/Drivers/USB/USB.h +++ b/LUFA/Drivers/USB/USB.h @@ -127,8 +127,8 @@ * </tr> * <tr> * <td>Printer</td> - * <td bgcolor="#EE0000">No</td> -* <td bgcolor="#00EE00">Yes</td> + * <td bgcolor="#00EE00">Yes</td> + * <td bgcolor="#00EE00">Yes</td> * </tr> * <tr> * <td>RNDIS</td> @@ -193,7 +193,7 @@ * void EVENT_USB_Device_ConfigurationChanged(void) * { * LEDs_SetAllLEDs(LEDMASK_USB_READY); - * + * * if (!(Audio_Device_ConfigureEndpoints(&My_Audio_Interface))) * LEDs_SetAllLEDs(LEDMASK_USB_ERROR); * } @@ -209,14 +209,14 @@ * int main(void) * { * SetupHardware(); - * + * * LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - * + * * for (;;) * { * if (USB_DeviceState != DEVICE_STATE_Configured) * Create_And_Process_Samples(); - * + * * Audio_Device_USBTask(&My_Audio_Interface); * USB_USBTask(); * } @@ -297,30 +297,30 @@ * void EVENT_USB_Host_DeviceEnumerationComplete(void) * { * LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING); - * + * * uint16_t ConfigDescriptorSize; * uint8_t ConfigDescriptorData[512]; - * + * * if (USB_Host_GetDeviceConfigDescriptor(1, &ConfigDescriptorSize, ConfigDescriptorData, * sizeof(ConfigDescriptorData)) != HOST_GETCONFIG_Successful) * { * LEDs_SetAllLEDs(LEDMASK_USB_ERROR); * return; * } - * + * * if (MIDI_Host_ConfigurePipes(&Keyboard_MIDI_Interface, * ConfigDescriptorSize, ConfigDescriptorData) != MIDI_ENUMERROR_NoError) * { * LEDs_SetAllLEDs(LEDMASK_USB_ERROR); * return; * } - * + * * if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful) * { * LEDs_SetAllLEDs(LEDMASK_USB_ERROR); * return; * } - * + * * LEDs_SetAllLEDs(LEDMASK_USB_READY); * } * \endcode @@ -333,7 +333,7 @@ * the configuration will fail. * * To complete the device enumeration after binding the host mode Class Drivers to the attached device, a call to - * \c USB_Host_SetDeviceConfiguration() must be made. If the device configuration is not set within the + * \c USB_Host_SetDeviceConfiguration() must be made. If the device configuration is not set within the * \c EVENT_USB_Host_DeviceEnumerationComplete() event, the host still will assume the device enumeration has failed. * * Once initialized, it is important to maintain the class driver's state by repeatedly calling the Class Driver's @@ -346,14 +346,14 @@ * int main(void) * { * SetupHardware(); - * + * * LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - * + * * for (;;) * { * if (USB_HostState != HOST_STATE_Configured) * Create_And_Process_Samples(); - * + * * MIDI_Host_USBTask(&My_Audio_Interface); * USB_USBTask(); * } |