Loading...
Searching...
No Matches
usbopt.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Koen Zandberg <koen@bergzand.net>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
21
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34typedef enum {
35
40
48
55
62
69
78
79 /* expand list if required */
80} usbopt_t;
81
88typedef enum {
89
94
99
104
105 /* expand list if required */
107
115
116#ifdef __cplusplus
117}
118#endif
119
usbopt_t
List of configuration settings for USB peripherals.
Definition usbopt.h:34
usbopt_enable_t
Binary parameter for enabling and disabling options.
Definition usbopt.h:111
usbopt_ep_t
List of configuration settings for USB peripheral endpoints.
Definition usbopt.h:88
@ USBOPT_ATTACH
(usbopt_enable_t) Attach/detach USB peripheral to host
Definition usbopt.h:47
@ USBOPT_ENUMERATED_SPEED
(usb_version_t) Speed at which the usb peripheral got enumerated by the host
Definition usbopt.h:77
@ USBOPT_ADDRESS
(uint8_t) USB device address, limited to 7 bit by the protocol
Definition usbopt.h:39
@ USBOPT_CONNECTED
(usbopt_enable_t) Whether a USB host connection is detected
Definition usbopt.h:54
@ USBOPT_MAX_VERSION
(usb_version_t) Highest USB version supported by peripheral
Definition usbopt.h:61
@ USBOPT_MAX_SPEED
(usb_version_t) Highest USB speed supported by peripheral
Definition usbopt.h:68
@ USBOPT_ENABLE
enable a given option
Definition usbopt.h:113
@ USBOPT_DISABLE
disable a given option
Definition usbopt.h:112
@ USBOPT_EP_ENABLE
(usbopt_enable_t) Enable or disable the endpoint
Definition usbopt.h:93
@ USBOPT_EP_STALL
(usbopt_enable_t) Enable or disable stall replies for endpoint
Definition usbopt.h:98
@ USBOPT_EP_AVAILABLE
(size_t) Retrieve number of bytes available on endpoint.
Definition usbopt.h:103