sam_usb.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Koen Zandberg
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "periph/usbdev.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 #define SAM_USB_NUM_EP USBDEV_NUM_ENDPOINTS
31 
35 typedef struct {
38  UsbDeviceDescBank banks[2 * SAM_USB_NUM_EP];
39  usbdev_ep_t endpoints[2 * SAM_USB_NUM_EP];
40  bool suspended;
42 
43 #ifdef __cplusplus
44 }
45 #endif
#define SAM_USB_NUM_EP
Number of USB IN and OUT endpoints.
Definition: sam_usb.h:30
USB peripheral parameters.
sam0 usb peripheral device context
Definition: sam_usb.h:35
usbdev_t usbdev
Inherited usbdev struct.
Definition: sam_usb.h:36
const sam0_common_usb_config_t * config
USB peripheral config
Definition: sam_usb.h:37
bool suspended
Suspend active
Definition: sam_usb.h:40
usbdev endpoint descriptor
Definition: usbdev.h:259
usbdev device descriptor
Definition: usbdev.h:247
Definitions low-level USB driver interface.