\r
void PRNT_Host_USBTask(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo)\r
{\r
- \r
+ (void)PRNTInterfaceInfo;\r
}\r
\r
uint8_t PRNT_Host_SetBidirectionalMode(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo)\r
\r
USB_ControlRequest = (USB_Request_Header_t)\r
{\r
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),\r
- bRequest: REQ_SetInterface,\r
- wValue: PRNTInterfaceInfo->State.AlternateSetting,\r
- wIndex: PRNTInterfaceInfo->State.InterfaceNumber,\r
- wLength: 0,\r
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),\r
+ .bRequest = REQ_SetInterface,\r
+ .wValue = PRNTInterfaceInfo->State.AlternateSetting,\r
+ .wIndex = PRNTInterfaceInfo->State.InterfaceNumber,\r
+ .wLength = 0,\r
};\r
\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
{\r
USB_ControlRequest = (USB_Request_Header_t)\r
{\r
- bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
- bRequest: REQ_GetPortStatus,\r
- wValue: 0,\r
- wIndex: PRNTInterfaceInfo->State.InterfaceNumber,\r
- wLength: sizeof(uint8_t),\r
+ .bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
+ .bRequest = REQ_GetPortStatus,\r
+ .wValue = 0,\r
+ .wIndex = PRNTInterfaceInfo->State.InterfaceNumber,\r
+ .wLength = sizeof(uint8_t),\r
};\r
\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
{\r
USB_ControlRequest = (USB_Request_Header_t)\r
{\r
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),\r
- bRequest: REQ_SoftReset,\r
- wValue: 0,\r
- wIndex: PRNTInterfaceInfo->State.InterfaceNumber,\r
- wLength: 0,\r
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),\r
+ .bRequest = REQ_SoftReset,\r
+ .wValue = 0,\r
+ .wIndex = PRNTInterfaceInfo->State.InterfaceNumber,\r
+ .wLength = 0,\r
};\r
\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
\r
USB_ControlRequest = (USB_Request_Header_t)\r
{\r
- bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
- bRequest: REQ_GetDeviceID,\r
- wValue: 0,\r
- wIndex: PRNTInterfaceInfo->State.InterfaceNumber,\r
- wLength: sizeof(DeviceIDStringLength),\r
+ .bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
+ .bRequest = REQ_GetDeviceID,\r
+ .wValue = 0,\r
+ .wIndex = PRNTInterfaceInfo->State.InterfaceNumber,\r
+ .wLength = sizeof(DeviceIDStringLength),\r
};\r
\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r