Loading...
Searching...
No Matches
usbopt.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Koen Zandberg <koen@bergzand.net>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for
6 * more details.
7 */
22#ifndef USB_USBOPT_H
23#define USB_USBOPT_H
24
25#include <stdint.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
37typedef enum {
38
43
51
58
65
72
81
82 /* expand list if required */
83} usbopt_t;
84
91typedef enum {
92
97
102
107
108 /* expand list if required */
110
118
119#ifdef __cplusplus
120}
121#endif
122
123#endif /* USB_USBOPT_H */
usbopt_t
List of configuration settings for USB peripherals.
Definition usbopt.h:37
usbopt_enable_t
Binary parameter for enabling and disabling options.
Definition usbopt.h:114
usbopt_ep_t
List of configuration settings for USB peripheral endpoints.
Definition usbopt.h:91
@ USBOPT_ATTACH
(usbopt_enable_t) Attach/detach USB peripheral to host
Definition usbopt.h:50
@ USBOPT_ENUMERATED_SPEED
(usb_version_t) Speed at which the usb peripheral got enumerated by the host
Definition usbopt.h:80
@ USBOPT_ADDRESS
(uint8_t) USB device address, limited to 7 bit by the protocol
Definition usbopt.h:42
@ USBOPT_CONNECTED
(usbopt_enable_t) Whether a USB host connection is detected
Definition usbopt.h:57
@ USBOPT_MAX_VERSION
(usb_version_t) Highest USB version supported by peripheral
Definition usbopt.h:64
@ USBOPT_MAX_SPEED
(usb_version_t) Highest USB speed supported by peripheral
Definition usbopt.h:71
@ USBOPT_ENABLE
enable a given option
Definition usbopt.h:116
@ USBOPT_DISABLE
disable a given option
Definition usbopt.h:115
@ USBOPT_EP_ENABLE
(usbopt_enable_t) Enable or disable the endpoint
Definition usbopt.h:96
@ USBOPT_EP_STALL
(usbopt_enable_t) Enable or disable stall replies for endpoint
Definition usbopt.h:101
@ USBOPT_EP_AVAILABLE
(size_t) Retrieve number of bytes available on endpoint.
Definition usbopt.h:106