|
|
@ -135,11 +135,11 @@ uint8_t PRNT_Host_SetBidirectionalMode(USB_ClassInfo_PRNT_Host_t* const PRNTInte
|
|
|
|
|
|
|
|
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),
|
|
|
|
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),
|
|
|
|
bRequest: REQ_SetInterface,
|
|
|
|
.bRequest = REQ_SetInterface,
|
|
|
|
wValue: PRNTInterfaceInfo->State.AlternateSetting,
|
|
|
|
.wValue = PRNTInterfaceInfo->State.AlternateSetting,
|
|
|
|
wIndex: PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
.wIndex = PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
wLength: 0,
|
|
|
|
.wLength = 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
@ -155,11 +155,11 @@ uint8_t PRNT_Host_GetPortStatus(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceIn
|
|
|
|
{
|
|
|
|
{
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
.bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
bRequest: REQ_GetPortStatus,
|
|
|
|
.bRequest = REQ_GetPortStatus,
|
|
|
|
wValue: 0,
|
|
|
|
.wValue = 0,
|
|
|
|
wIndex: PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
.wIndex = PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
wLength: sizeof(uint8_t),
|
|
|
|
.wLength = sizeof(uint8_t),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
@ -171,11 +171,11 @@ uint8_t PRNT_Host_SoftReset(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
bRequest: REQ_SoftReset,
|
|
|
|
.bRequest = REQ_SoftReset,
|
|
|
|
wValue: 0,
|
|
|
|
.wValue = 0,
|
|
|
|
wIndex: PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
.wIndex = PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
wLength: 0,
|
|
|
|
.wLength = 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
@ -215,11 +215,11 @@ uint8_t PRNT_Host_GetDeviceID(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo
|
|
|
|
|
|
|
|
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
USB_ControlRequest = (USB_Request_Header_t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
.bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
|
|
|
|
bRequest: REQ_GetDeviceID,
|
|
|
|
.bRequest = REQ_GetDeviceID,
|
|
|
|
wValue: 0,
|
|
|
|
.wValue = 0,
|
|
|
|
wIndex: PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
.wIndex = PRNTInterfaceInfo->State.InterfaceNumber,
|
|
|
|
wLength: sizeof(DeviceIDStringLength),
|
|
|
|
.wLength = sizeof(DeviceIDStringLength),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
|
Pipe_SelectPipe(PIPE_CONTROLPIPE);
|
|
|
|