Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB device operating mode configuration

Modules

 USB device custom actions
 

Macros

#define EP_HID_MOUSE_IN   1
 
#define NB_ENDPOINTS   2
 
#define USB_REMOTE_WAKEUP_FEATURE   true
 enable the Remote Wakeup feature More...
 

Functions

void usb_sof_action (void)
 usb_sof_action More...
 
void usb_suspend (void)
 Suspend callback. More...
 
void usb_suspend_action (void)
 

#define EP_HID_MOUSE_IN   1
#define NB_ENDPOINTS   2
#define USB_REMOTE_WAKEUP_FEATURE   true

enable the Remote Wakeup feature

void usb_sof_action ( void  )

usb_sof_action

This function increments the sof_cnt counter each time the USB Start-of-Frame interrupt subroutine is executed (1 ms). Useful to manage time delays

void usb_suspend ( void  )

Suspend callback.

This function enables the interrupts in order to send a remote wakeup to the host.

References gpio_clear_pin_interrupt_flag(), gpio_enable_pin_interrupt(), GPIO_RISING_EDGE, and remote_wakeup_feature.