The function usbd_cdc_ser_read reads data, buffer, with the length length from the serial port. The argument buffer is a pointer to the data block that should be read. The argument length is a pointer that specifies the length of the data block. The function usbd_cdc_ser_read is part of the USB Device Function Driver layer of the RL-USB Device Software Stack. Modify this function to the application needs. |