MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Serial Port Virtual USB

Data Structures

struct  serial_port_usb_cdc_virtual_config_t
 serial port usb config struct More...
 

Macros

#define SERIAL_PORT_USB_VIRTUAL_HANDLE_SIZE   (40U)
 serial port USB handle size
 

Enumerations

enum  serial_port_usb_cdc_virtual_controller_index_t {
  kSerialManager_UsbVirtualControllerKhci0 = 0U,
  kSerialManager_UsbVirtualControllerKhci1 = 1U,
  kSerialManager_UsbVirtualControllerEhci0 = 2U,
  kSerialManager_UsbVirtualControllerEhci1 = 3U,
  kSerialManager_UsbVirtualControllerLpcIp3511Fs0 = 4U,
  kSerialManager_UsbVirtualControllerLpcIp3511Fs1,
  kSerialManager_UsbVirtualControllerLpcIp3511Hs0 = 6U,
  kSerialManager_UsbVirtualControllerLpcIp3511Hs1,
  kSerialManager_UsbVirtualControllerOhci0 = 8U,
  kSerialManager_UsbVirtualControllerOhci1 = 9U,
  kSerialManager_UsbVirtualControllerIp3516Hs0 = 10U,
  kSerialManager_UsbVirtualControllerIp3516Hs1 = 11U
}
 USB controller ID. More...
 

Variables

serial_port_usb_cdc_virtual_controller_index_t serial_port_usb_cdc_virtual_config_t::controllerIndex
 controller index
 

Detailed Description

This chapter describes how to redirect the serial manager stream to application CDC. The weak functions can be implemented by application to redirect the serial manager stream. The weak functions are following,
USB_DeviceVcomInit - Initialize the cdc vcom.
USB_DeviceVcomDeinit - De-initialize the cdc vcom.
USB_DeviceVcomWrite - Write data with non-blocking mode. After data is sent, the installed TX callback should be called with the result.
USB_DeviceVcomRead - Read data with non-blocking mode. After data is received, the installed RX callback should be called with the result.
USB_DeviceVcomCancelWrite - Cancel write request.
USB_DeviceVcomInstallTxCallback - Install TX callback.
USB_DeviceVcomInstallRxCallback - Install RX callback.
USB_DeviceVcomIsrFunction - The hardware ISR function.


Data Structure Documentation

struct serial_port_usb_cdc_virtual_config_t

Enumeration Type Documentation

Enumerator
kSerialManager_UsbVirtualControllerKhci0 

KHCI 0U.

kSerialManager_UsbVirtualControllerKhci1 

KHCI 1U, Currently, there are no platforms which have two KHCI IPs, this is reserved to be used in the future.

kSerialManager_UsbVirtualControllerEhci0 

EHCI 0U.

kSerialManager_UsbVirtualControllerEhci1 

EHCI 1U, Currently, there are no platforms which have two EHCI IPs, this is reserved to be used in the future.

kSerialManager_UsbVirtualControllerLpcIp3511Fs0 

LPC USB IP3511 FS controller 0.

kSerialManager_UsbVirtualControllerLpcIp3511Fs1 

LPC USB IP3511 FS controller 1, there are no platforms which have two IP3511 IPs, this is reserved to be used in the future.

kSerialManager_UsbVirtualControllerLpcIp3511Hs0 

LPC USB IP3511 HS controller 0.

kSerialManager_UsbVirtualControllerLpcIp3511Hs1 

LPC USB IP3511 HS controller 1, there are no platforms which have two IP3511 IPs, this is reserved to be used in the future.

kSerialManager_UsbVirtualControllerOhci0 

OHCI 0U.

kSerialManager_UsbVirtualControllerOhci1 

OHCI 1U, Currently, there are no platforms which have two OHCI IPs, this is reserved to be used in the future.

kSerialManager_UsbVirtualControllerIp3516Hs0 

IP3516HS 0U.

kSerialManager_UsbVirtualControllerIp3516Hs1 

IP3516HS 1U, Currently, there are no platforms which have two IP3516HS IPs, this is reserved to be used in the future.