Silicon Laboratories SiM3U1xx Instrukcja Użytkownika Strona 22

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 30
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 21
AN758
22 Rev. 0.1
5.4.9. USB0_epn_handler
Handle endpoint n request.
Syntax
void USB0_epn_handler(void)
Parameters
None
Return Value
None
Description
This function handles all endpoint n request.
Example
if (usbEpInterruptMask & (SI32_USB_A_IOINT_IN1I_MASK | SI32_USB_A_IOINT_OUT1I_MASK))
{
Endpoint_SelectEndpoint(1);
USB0_epn_handler();
}
if (usbEpInterruptMask & (SI32_USB_A_IOINT_IN2I_MASK | SI32_USB_A_IOINT_OUT2I_MASK))
{
Endpoint_SelectEndpoint(2);
USB0_epn_handler();
}
5.4.10. Endpoint_WaitUntilReady
Wait for endpoint ready.
Syntax
uint8_t Endpoint_WaitUntilReady(void)
Parameters
None
Return Value
ENDPOINT_READYWAIT_NoError,
ENDPOINT_READYWAIT_EndpointStalled,
ENDPOINT_READYWAIT_DeviceDisconnected,
ENDPOINT_READYWAIT_BusSuspended,
ENDPOINT_READYWAIT_Timeout
Description
This function will check endpoint ready status. It set 100ms timeout with counting frame number.
Example
if ((ErrorCode = Endpoint_WaitUntilReady()) != ENDPOINT_READYWAIT_NoError)
return ErrorCode;
Przeglądanie stron 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Komentarze do niniejszej Instrukcji

Brak uwag