/
USBD_PHDC_OS_WrIntrLock

USBD_PHDC_OS_WrIntrLock

Description

Lock the write interrupt pipe.

Files

usbd_phdc_os.h / usbd_phdc_os.c

Prototype

void  USBD_PHDC_OS_WrIntrLock (CPU_INT08U   class_nbr,
                               CPU_INT16U   timeout,
                               USBD_ERR    *p_err);


Arguments

class_nbr

PHDC instance number.

timeout

Timeout.

p_err

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

Returned Value

None.

Callers

Personal Healthcare Device Class.

Implementation guidelines

  1. Typical implementation will consist in pending on a semaphore that locks the write interrupt pipe.
  2. p_err argument should be assigned as described in Table - Error Code Assignment in Function of Lock Operation Result.

Related content

USBD_PHDC_OS_WrIntrUnLock
USBD_PHDC_OS_WrIntrUnLock
More like this
USBD_PHDC_OS_RdLock
USBD_PHDC_OS_RdLock
More like this
USBD_PHDC_OS_RdUnLock
USBD_PHDC_OS_RdUnLock
More like this
USBD_PHDC_OS_WrBulkUnlock
USBD_PHDC_OS_WrBulkUnlock
More like this
USBD_PHDC_OS_WrBulkLock
USBD_PHDC_OS_WrBulkLock
More like this
USBD_PHDC_OS_Init
USBD_PHDC_OS_Init
More like this