USBD_OS_CoreEventGet

USBD_OS_CoreEventGet

Description

Wait until a core event is ready.

Files

usbd_internal.h/usbd_os.c

Prototype

void *USBD_OS_CoreEventGet (CPU_INT32U timeout_ms, USBD_ERR *p_err);

 

Arguments

timeout_ms

Timeout in milliseconds.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Value

Pointer to core event, if no errors.

Null pointer, otherwise.

Callers

USBD_CoreTaskHandler.

Implementation guidelines

  1. A call to this function should block until an event is added to queue and return it.

  2. Table - Error code for pend operations describes the error codes that should be assigned to p_err depending on the operation result.