@ -64,9 +64,11 @@ void CDC_Device_ProcessControlRequest(USB_ClassInfo_CDC_Device_t* const CDCInter
if ( USB_ControlRequest . bmRequestType = = ( REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE ) )
if ( USB_ControlRequest . bmRequestType = = ( REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE ) )
{
{
Endpoint_ClearSETUP ( ) ;
Endpoint_ClearSETUP ( ) ;
Endpoint_Read_Control_Stream_LE ( & CDCInterfaceInfo - > State . LineEncoding , sizeof ( CDCInterfaceInfo - > State . LineEncoding ) ) ;
Endpoint_Read_Control_Stream_LE ( & CDCInterfaceInfo - > State . LineEncoding , sizeof ( CDCInterfaceInfo - > State . LineEncoding ) ) ;
EVENT_CDC_Device_LineEncodingChanged ( CDCInterfaceInfo ) ;
Endpoint_ClearIN ( ) ;
Endpoint_ClearIN ( ) ;
EVENT_CDC_Device_LineEncodingChanged ( CDCInterfaceInfo ) ;
}
}
break ;
break ;
@ -76,9 +78,10 @@ void CDC_Device_ProcessControlRequest(USB_ClassInfo_CDC_Device_t* const CDCInter
Endpoint_ClearSETUP ( ) ;
Endpoint_ClearSETUP ( ) ;
CDCInterfaceInfo - > State . ControlLineStates . HostToDevice = USB_ControlRequest . wValue ;
CDCInterfaceInfo - > State . ControlLineStates . HostToDevice = USB_ControlRequest . wValue ;
EVENT_CDC_Device_ControLineStateChanged ( CDCInterfaceInfo ) ;
Endpoint_ClearStatusStage ( ) ;
Endpoint_ClearStatusStage ( ) ;
EVENT_CDC_Device_ControLineStateChanged ( CDCInterfaceInfo ) ;
}
}
break ;
break ;
@ -86,10 +89,9 @@ void CDC_Device_ProcessControlRequest(USB_ClassInfo_CDC_Device_t* const CDCInter
if ( USB_ControlRequest . bmRequestType = = ( REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE ) )
if ( USB_ControlRequest . bmRequestType = = ( REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE ) )
{
{
Endpoint_ClearSETUP ( ) ;
Endpoint_ClearSETUP ( ) ;
Endpoint_ClearStatusStage ( ) ;
EVENT_CDC_Device_BreakSent ( CDCInterfaceInfo , ( uint8_t ) USB_ControlRequest . wValue ) ;
EVENT_CDC_Device_BreakSent ( CDCInterfaceInfo , ( uint8_t ) USB_ControlRequest . wValue ) ;
Endpoint_ClearStatusStage ( ) ;
}
}
break ;
break ;