Silicon Laboratories SiM3U1xx Manual do Utilizador Página 10

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 30
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 29 30

Comentários a estes Manuais

Sem comentários