Hi Giuliano Vitor
Seams that USB documentation for SDK 2.0 is not updated. usb_device_cdc_acm_send and usb_device_cdc_acm_recv were used for SDK 1.3, in SDK 2.0 you can find this functions like USB_DeviceCdcAcmRecv and USB_DeviceCdcAcmSend. For example in the cdc_vcom example you can find in the kUSB_DeviceCdcEventSendResponse and kUSB_DeviceCdcEventRecvResponse events something like:
case kUSB_DeviceCdcEventSendResponse:
{
...
USB_DeviceCdcAcmRecv(handle,
USB_CDC_VCOM_BULK_OUT_ENDPOINT,
s_currRecvBuf,
g_UsbDeviceCdcVcomDicEndpoints[0].maxPacketSize);
...
break;
}
case kUSB_DeviceCdcEventRecvResponse:
{
if ((1 == s_cdcVcom.attach) && (1 == s_cdcVcom.startTransactions))
{
s_recvSize = epCbParam->length;
if (!s_recvSize)
{
/* Schedule buffer for next receive event */
USB_DeviceCdcAcmRecv(handle,
USB_CDC_VCOM_BULK_OUT_ENDPOINT,
s_currRecvBuf,
g_UsbDeviceCdcVcomDicEndpoints[0].maxPacketSize);
...
break;
}
inside USB_DeviceCdcAcmRecv and USB_DeviceCdcAcmSend they used this USB_DeviceRecvRequest and USB_DeviceSendRequest that you mentioned
Hope this information help you
Best Regards
Jorge Alcala