Defines

# USB software Events Management
[USB task entry point]

Macros to manage USB events detected under interrupt. More...

## Defines
#define | Usb_send_event(x) (g_usb_event |= (1<<x))
#define | Usb_ack_event(x) (g_usb_event &= ~(1<<x))
#define | Usb_clear_all_event() (g_usb_event = 0)
#define | Is_usb_event(x) ((g_usb_event & (1<<x)) ? TRUE : FALSE)
#define | Is_not_usb_event(x) ((g_usb_event & (1<<x)) ? FALSE: TRUE)
#define | EVT_USB_POWERED 1
#define | EVT_USB_UNPOWERED 2
#define | EVT_USB_DEVICE_FUNCTION 3
#define | EVT_USB_HOST_FUNCTION 4
#define | EVT_USB_SUSPEND 5
#define | EVT_USB_WAKE_UP 6
#define | EVT_USB_RESUME 7
#define | EVT_USB_RESET 8

## Detailed Description

Macros to manage USB events detected under interrupt.

## Define Documentation

#define Usb_send_event | ( |  | x ) | (g_usb_event |= (1<<x))

Definition at line 58 of file usb_task.h.

Referenced by usb_device_task(), and usb_general_interrupt().

#define Usb_ack_event | ( |  | x ) | (g_usb_event &= ~(1<<x))

Definition at line 59 of file usb_task.h.

Referenced by usb_device_task().

#define Usb_clear_all_event | ( | ) | (g_usb_event = 0)

Definition at line 60 of file usb_task.h.

#define Is_usb_event | ( |  | x ) | ((g_usb_event & (1<<x)) ? TRUE : FALSE)

Definition at line 61 of file usb_task.h.

Referenced by usb_device_task().

#define Is_not_usb_event | ( |  | x ) | ((g_usb_event & (1<<x)) ? FALSE: TRUE)

Definition at line 62 of file usb_task.h.

#define EVT_USB_POWERED 1

Definition at line 64 of file usb_task.h.

Referenced by usb_device_task().

#define EVT_USB_UNPOWERED 2

Definition at line 65 of file usb_task.h.

Referenced by usb_device_task().

#define EVT_USB_DEVICE_FUNCTION 3

Definition at line 66 of file usb_task.h.

#define EVT_USB_HOST_FUNCTION 4

Definition at line 67 of file usb_task.h.

#define EVT_USB_SUSPEND 5

Definition at line 68 of file usb_task.h.

Referenced by usb_general_interrupt().

#define EVT_USB_WAKE_UP 6

Definition at line 69 of file usb_task.h.

Referenced by usb_device_task(), and usb_general_interrupt().

#define EVT_USB_RESUME 7

Definition at line 70 of file usb_task.h.

Referenced by usb_general_interrupt().

#define EVT_USB_RESET 8

Definition at line 71 of file usb_task.h.

Referenced by usb_device_task(), and usb_general_interrupt().