All USB class drivers are now automatically included when LUFA/Drivers/USB.h is included, and no longer need to be seperately included.
All LowLevel demos changed to use the constants and types defined in the USB class drivers.
This commit is contained in:
parent
8f3bee7d86
commit
b37d77eab3
208 changed files with 589 additions and 2910 deletions
|
|
@ -81,7 +81,7 @@ uint8_t Printer_GetDeviceID(char* DeviceIDString,
|
|||
USB_ControlRequest = (USB_Request_Header_t)
|
||||
{
|
||||
.bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
||||
.bRequest = REQ_GetDeviceID,
|
||||
.bRequest = PRNT_REQ_GetDeviceID,
|
||||
.wValue = 0,
|
||||
.wIndex = PrinterInterfaceNumber,
|
||||
.wLength = sizeof(DeviceIDStringLength),
|
||||
|
|
@ -128,7 +128,7 @@ uint8_t Printer_GetPortStatus(uint8_t* const PortStatus)
|
|||
USB_ControlRequest = (USB_Request_Header_t)
|
||||
{
|
||||
.bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
||||
.bRequest = REQ_GetPortStatus,
|
||||
.bRequest = PRNT_REQ_GetPortStatus,
|
||||
.wValue = 0,
|
||||
.wIndex = PrinterInterfaceNumber,
|
||||
.wLength = sizeof(uint8_t),
|
||||
|
|
@ -149,7 +149,7 @@ uint8_t Printer_SoftReset(void)
|
|||
USB_ControlRequest = (USB_Request_Header_t)
|
||||
{
|
||||
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
|
||||
.bRequest = REQ_SoftReset,
|
||||
.bRequest = PRNT_REQ_SoftReset,
|
||||
.wValue = 0,
|
||||
.wIndex = PrinterInterfaceNumber,
|
||||
.wLength = 0,
|
||||
|
|
|
|||
|
|
@ -44,16 +44,6 @@
|
|||
|
||||
#include "../PrinterHost.h"
|
||||
|
||||
/* Macros: */
|
||||
/** Printer class-specific request to retrieve the printer's ID string. */
|
||||
#define REQ_GetDeviceID 0
|
||||
|
||||
/** Printer class-specific request to retrieve the printer's virtual port status flags. */
|
||||
#define REQ_GetPortStatus 1
|
||||
|
||||
/** Printer class-specific request to soft-reset the device. */
|
||||
#define REQ_SoftReset 2
|
||||
|
||||
/* Function Prototypes: */
|
||||
uint8_t Printer_SendData(const void* const PrinterCommands,
|
||||
const uint16_t CommandSize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue