SAM USB Dual Role driver file.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | _usb_is_id_device() port_pin_get_input_level(USB_ID_PIN) |
#define | udc_start() |
#define | udc_stop() |
Functions | |
void | usb_dual_disable (void) |
Deinitialize the dual role driver. More... | |
bool | usb_dual_enable (void) |
Initialize the USB peripheral and set right role according to ID pin. More... | |
Variables | |
static bool | _initialized = false |
#define _usb_is_id_device | ( | ) | port_pin_get_input_level(USB_ID_PIN) |
Referenced by usb_dual_enable().
#define udc_start | ( | ) |
Referenced by usb_dual_enable().
#define udc_stop | ( | ) |
Referenced by usb_dual_disable(), and usb_dual_enable().