usb_cdc_echo/src/usb_cdc_echo.cpp
// the setup request's data part comes in a separate phase and so it has a separate callback:
the setup request's data part comes in a separate phase and so it has a separate callback.
the setup request ' s data part comes in a separate phase and so it has a separate callback .
bool TUifCdcControl::HandleSetupData(TUsbSetupRequest * psrq, void * adata, unsigned adatalen)
{
	if (0x20 == psrq->request) 
	{
		memcpy(&linecoding, adata, sizeof(linecoding));
		TRACE("VCP Line Coding data:\r\n  baud=%i, format=%i, parity=%i, bits=%i\r\n",
				linecoding.baudrate, linecoding.charformat, linecoding.paritytype, linecoding.databits
		);
		device->SendControlStatus(true);
		return true;
	}
	return false;
}
bool TUifCdcControl :: HandleSetupData ( TUsbSetupRequest * psrq , void * adata , unsigned adatalen ) { if ( 0x20 == psrq -> request ) { memcpy ( & linecoding , adata , sizeof ( linecoding ) ) ; TRACE ( " \r \n \r \n " , linecoding . baudrate , linecoding . charformat , linecoding . paritytype , linecoding . databits ) ; device -> SendControlStatus ( true ) ; return true ; } return false ; }
the setup request's data part comes in a separate phase and so it has a separate callback:
the setup request ' s data part comes in a separate phase and so it has a separate callback :
// set line coding // todo: update UART