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) |
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().
Referenced by usb_dual_disable(), and usb_dual_enable().