Hanna
Sourcecode Kontrollplatine |
Bibliothek zur USB-Kommunikation von Jürgen W. Mehr ...
gehe zum Quellcode dieser Datei
Datenstrukturen | |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | ATTR_PACKED |
struct | USB_Descriptor_Configuration_t |
Makrodefinitionen | |
#define | CDC_CONTROL_LINE_IN_BREAK (1 << 2) |
#define | CDC_CONTROL_LINE_IN_DCD (1 << 0) |
#define | CDC_CONTROL_LINE_IN_DSR (1 << 1) |
#define | CDC_CONTROL_LINE_IN_FRAMEERROR (1 << 4) |
#define | CDC_CONTROL_LINE_IN_OVERRUNERROR (1 << 6) |
#define | CDC_CONTROL_LINE_IN_PARITYERROR (1 << 5) |
#define | CDC_CONTROL_LINE_IN_RING (1 << 3) |
#define | CDC_CONTROL_LINE_OUT_DTR (1 << 0) |
#define | CDC_CONTROL_LINE_OUT_RTS (1 << 1) |
#define | CDC_FUNCTIONAL_DESCRIPTOR(DataSize) |
#define | CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 2) |
#define | CDC_NOTIFICATION_EPSIZE 8 |
#define | CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 4) |
#define | CDC_TX_EPADDR (ENDPOINT_DIR_IN | 3) |
#define | CDC_TXRX_EPSIZE 64 |
Funktionen | |
uint16_t | CALLBACK_USB_GetDescriptor (const uint16_t wValue, const uint8_t wIndex, const void **const DescriptorAddress) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3) |
Bibliothek zur USB-Kommunikation von Jürgen W.
$Revision: 464 $ $Date: 2016-04-02 12:30:30 +0200 (Sa, 02 Apr 2016) $
LUFA Library Copyright (C) Dean Camera, 2011.
dean [at] fourwalledcubicle [dot] com www.lufa-lib.org
Definiert in Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_BREAK (1 << 2) |
Mask for the BREAK handshake line for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that the BREAK line state is currently high.
Definiert in Zeile 95 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_DCD (1 << 0) |
Mask for the DCD handshake line for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that the DCD line state is currently high.
Definiert in Zeile 85 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_DSR (1 << 1) |
Mask for the DSR handshake line for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that the DSR line state is currently high.
Definiert in Zeile 90 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_FRAMEERROR (1 << 4) |
Mask for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that a framing error has occurred on the virtual serial port.
Definiert in Zeile 105 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_OVERRUNERROR (1 << 6) |
Mask for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that a data overrun error has occurred on the virtual serial port.
Definiert in Zeile 115 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_PARITYERROR (1 << 5) |
Mask for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that a parity error has occurred on the virtual serial port.
Definiert in Zeile 110 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_IN_RING (1 << 3) |
Mask for the RING handshake line for use with the CDC_NOTIF_SerialState class-specific notification from the device to the host, to indicate that the RING line state is currently high.
Definiert in Zeile 100 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_OUT_DTR (1 << 0) |
Mask for the DTR handshake line for use with the CDC_REQ_SetControlLineState class-specific request from the host, to indicate that the DTR line state should be high.
Definiert in Zeile 75 der Datei Descriptors.h.
#define CDC_CONTROL_LINE_OUT_RTS (1 << 1) |
Mask for the RTS handshake line for use with the CDC_REQ_SetControlLineState class-specific request from the host, to indicate that the RTS line state should be high.
Definiert in Zeile 80 der Datei Descriptors.h.
#define CDC_FUNCTIONAL_DESCRIPTOR | ( | DataSize | ) |
Macro to define a CDC class-specific functional descriptor. CDC functional descriptors have a uniform structure but variable sized data payloads, thus cannot be represented accurately by a single typedef struct. A macro is used instead so that functional descriptors can be created easily by specifying the size of the payload. This allows sizeof()
to work correctly.
[in] | DataSize | Size in bytes of the CDC functional descriptor's data payload. |
Definiert in Zeile 127 der Datei Descriptors.h.
#define CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 2) |
Endpoint address of the CDC device-to-host notification IN endpoint.
Definiert in Zeile 55 der Datei Descriptors.h.
#define CDC_NOTIFICATION_EPSIZE 8 |
Size in bytes of the CDC device-to-host notification IN endpoint.
Definiert in Zeile 64 der Datei Descriptors.h.
#define CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 4) |
Endpoint address of the CDC host-to-device data OUT endpoint.
Definiert in Zeile 61 der Datei Descriptors.h.
#define CDC_TX_EPADDR (ENDPOINT_DIR_IN | 3) |
Endpoint address of the CDC device-to-host data IN endpoint.
Definiert in Zeile 58 der Datei Descriptors.h.
#define CDC_TXRX_EPSIZE 64 |
Size in bytes of the CDC data IN and OUT endpoints.
Definiert in Zeile 67 der Datei Descriptors.h.
Enum for the CDC class specific notification requests that can be issued by a CDC device to a host.
Definiert in Zeile 184 der Datei Descriptors.h.
enum CDC_ClassRequests_t |
Enum for the CDC class specific control requests that can be issued by the USB bus host.
Definiert in Zeile 173 der Datei Descriptors.h.
Enum for possible Class, Subclass and Protocol values of device and interface descriptors relating to the CDC device class.
Definiert in Zeile 141 der Datei Descriptors.h.
Enum for the CDC class specific interface descriptor subtypes.
Definiert in Zeile 194 der Datei Descriptors.h.
Enum for the possible line encoding formats of a virtual serial port.
Definiert in Zeile 216 der Datei Descriptors.h.
Enum for the possible line encoding parity settings of a virtual serial port.
Definiert in Zeile 224 der Datei Descriptors.h.
uint16_t CALLBACK_USB_GetDescriptor | ( | const uint16_t | wValue, |
const uint8_t | wIndex, | ||
const void **const | DescriptorAddress | ||
) |
This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" documentation) by the application code so that the address and size of a requested descriptor can be given to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the USB host.
Definiert in Zeile 182 der Datei Descriptors.c.