Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

usbd_hid_os.h/usbd_hid_os.c

Prototype

Code Block
languagecpp
void  USBD_HID_OS_InputLock (CPU_INT08U   class_nbr,
                             USBD_ERR    *p_err);


Arguments

class_nbr

Class instance number.

...

The lock operation typically consists in pending on a semaphore. If the semaphore is free, the task continues normally its execution, otherwise it waits until another task releases the semaphore. p_err argument should be assigned as described in following table:

Anchor
Table - Error code assignment according to pend operation result
Table - Error code assignment according to pend operation result

Panel
borderWidth0
titleTable - Error code assignment according to pend operation result


Operation resultError code to assign
No errorUSBD_ERR_NONE
Pend abortedUSBD_ERR_OS_ABORT
Pend failed for any other reasonUSBD_ERR_OS_FAIL