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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,212件の閲覧回数
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 件の賞賛
返信
1 返信

1,069件の閲覧回数
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 件の賞賛
返信