- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# USB device operating mode configuration
[USB application configuration]

## Modules
| USB device custom actions
## Defines
#define | USB_DEVICE_SN_USE DISABLE
#define | USE_DEVICE_SN_UNIQUE DISABLE
#define | Usb_unicode(a) ((U16)(a))
#define | NB_ENDPOINTS 2
#define | EP_HID_IN 1
#define | EP_HID_OUT 2
#define | USB_REMOTE_WAKEUP_FEATURE DISABLE
## Functions
void | sof_action (void)

## Define Documentation

#define USB_DEVICE_SN_USE DISABLE

Definition at line 172 of file conf_usb.h.

#define USE_DEVICE_SN_UNIQUE DISABLE

Definition at line 173 of file conf_usb.h.

#define Usb_unicode | ( | a |  | ) | ((U16)(a))

Definition at line 175 of file conf_usb.h.

#define NB_ENDPOINTS 2

Definition at line 177 of file conf_usb.h.

#define EP_HID_IN 1

Definition at line 178 of file conf_usb.h.

Referenced by hid_report_in(), usb_user_endpoint_init(), and usb_user_interface_reset().

#define EP_HID_OUT 2

Definition at line 179 of file conf_usb.h.

Referenced by hid_report_out(), usb_user_endpoint_init(), and usb_user_interface_reset().

#define USB_REMOTE_WAKEUP_FEATURE DISABLE

Definition at line 181 of file conf_usb.h.

Referenced by usb_clear_feature(), and usb_set_feature().

## Function Documentation

void sof_action | ( | void |  | ) |

This function increments the cpt_sof counter each times the USB Start Of Frame interrupt subroutine is executed (1ms) Usefull to manage time delays

Definition at line 176 of file hid_task.c.

    00177 {
    00178    cpt_sof++;
    00179 }