Silicon Laboratories SiM3U1xx Manual de usuario Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
AN758
24 Rev. 0.1
5.4.13. Endpoint_Write_Stream_LE
Write stream data to correspond endpoint.
Syntax
uint8_t Endpoint_Write_Stream_LE(const void* const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
Parameters
Buffer: pointer to data buffer
Length: Transmit length
Return Value
ENDPOINT_RWSTREAM_NoError,
ENDPOINT_READYWAIT_EndpointStalled,
ENDPOINT_READYWAIT_DeviceDisconnected,
ENDPOINT_READYWAIT_BusSuspended,
ENDPOINT_READYWAIT_Timeout
Description
This function writes stream data to correspond endpoint according usb_ep_selected.
Example
Endpoint_SelectEndpoint(CDCInterfaceInfo->Config.DataINEndpoint.Address);
return Endpoint_Write_Stream_LE(Buffer, Length, NULL);
5.4.14. Endpoint_ClearIN
Sends an IN packet to the host on the currently selected endpoint.
Syntax
static inline void Endpoint_ClearIN(void)
Parameters
None
Return Value
None
Description
This function Sends an IN packet to the host on the currently selected endpoint. It set IPRDYI = 1 to start USB IN
transmits.
Example
CDC_Device_SendData(&VirtualSerial_CDC_Interface, (char *)in_buff, recv_count);
Endpoint_ClearIN();
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 30

Comentarios a estos manuales

Sin comentarios