Silicon Laboratories SiM3U1xx Manual de usuario Pagina 10

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 9
AN758
10 Rev. 0.1
5.1.6. CDC_Device_ReceiveByte
USB CDC receive one byte from USB OUT FIFO.
Syntax
int16_t CDC_Device_ReceiveByte(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo)
Parameters
CDCInterfaceInfo: Pointer to CDC Class state structure
Return Value
-1: if no data received
Data: one byte from USB data out FIFO.
Description
This function receives one byte from USB data out FIFO. It returns -1 if no data received.
Example
uint32_t out_buff;
out_buff = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
5.1.7. CDC_Device_SendControlLineStateChange
USB CDC notification.
Syntax
void CDC_Device_SendControlLineStateChange(USB_ClassInfo_CDC_Device_t* const
CDCInterfaceInfo)
Parameters
CDCInterfaceInfo: Pointer to CDC Class state structure
Return Value
None
Description
This function sends state data to notification endpoint.
Example
CDC_Device_SendControlLineStateChange(CDCInterfaceInfo);
Vista de pagina 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 29 30

Comentarios a estos manuales

Sin comentarios