Silicon Laboratories SiM3U1xx Uživatelský manuál Strana 10

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 30
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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);
Zobrazit stránku 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 29 30

Komentáře k této Příručce

Žádné komentáře