Adjust Virtual COM example code to NOT use DTE (MCUXpresso SDK)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adjust Virtual COM example code to NOT use DTE (MCUXpresso SDK)

831 Views
arno1
Contributor II

I'm working on implementing USB CDC ACM (virtual com port) and MSC (mass storage) in a LPC54606 project, based on the LPCXpresso54608 example (lpc54608_dev_composite_cdc_msc_bm).

I don't want to use flow control (DTE), because the (already existing) application we are communicating with does not have this implemented.
Can someone point me in the right direction on how I should adjust the USB_DeviceCdcVcomCallback in virtual_com.c ?
I reckon I should change something in the kUSB_DeviceCdcEventSetControlLineState case, but it is not very clear to me what this does exactly.

0 Kudos
Reply
1 Reply

688 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Arno,

According to the USB spec you can change whether DTE is present or not in the the Control Signal Bitmap Values.

You are correct in your affirmation that flow control needs to be change in USB_DeviceCdcEventSetControlLineState.

Please see below the brief extracted from the spec.

pastedImage_1.png

In the following snippet is shown the lower byte of the uartBitmap. Here you should set them to 0.

pastedImage_14.png

I hope this helps.

Best regards,

Felipe

0 Kudos
Reply