Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Adds HID class instance into USB device configuration.

Files

usbd_hid.h/usbd_hid.c

Prototype

Arguments

class_nbr

Class instance number.

dev_nbr

Device number.

cfg_nbr

Configuration index to add class instance to.

p_err

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

USBD_ERR_NONE
USBD_ERR_ALLOC                  
USBD_ERR_INVALID_ARG            
USBD_ERR_NULL_PTR               
USBD_ERR_DEV_INVALID_NBR        
USBD_ERR_DEV_INVALID_STATE      
USBD_ERR_CFG_INVALID_NBR        
USBD_ERR_IF_ALLOC               
USBD_ERR_IF_ALT_ALLOC           
USBD_ERR_EP_NONE_AVAIL          
USBD_ERR_IF_INVALID_NBR         
USBD_ERR_EP_ALLOC               

Returned Value

DEF_YES, if NO error(s).

DEF_NO, otherwise.

Callers

Application.

Notes / Warnings

This API may be called several times. This allows to create multiple instances of the HID class into different USB device configurations.

  • No labels