USB-BDI
|
This file handles class requests for the composite device. More...
#include "usb_class_requests.h"
#include "usb_common.h"
#include "BDI.h"
#include "virtual_com_port.h"
#include "usbpdi_common.h"
#include "UART.h"
Go to the source code of this file.
Functions | |
void | sendEncapsulatedCommand (void) |
This method sends encapsulated commands to the host. | |
void | getEncapsulatedCommand (void) |
This method gets encapsulated commands from the host. | |
void | setLineCoding (void) |
This method sets the Line Coding witch is received from the host. | |
void | getLineCoding (void) |
This method returns the actual Line Coding to the host. | |
void | setControlLineState (void) |
This method sets control line states which are sent from the Host. | |
void | sendBreak (void) |
This stores the number of Breaks which should be send. | |
void | setCommFeature (void) |
optional not handled. | |
void | getCommFeature (void) |
optional not handled. | |
void | clearCommFeature (void) |
optional not handled. | |
void | classRequest (void) |
This method decide witch request has to be handled and calls the appropriate method. |
This file handles class requests for the composite device.
Definition in file usb_class_requests.c.
void getEncapsulatedCommand | ( | void | ) |
This method gets encapsulated commands from the host.
At the current there are no encapsulated commands supported. The method sends a zero length message back.
Definition at line 50 of file usb_class_requests.c.
void getLineCoding | ( | void | ) |
This method returns the actual Line Coding to the host.
Data Line Coding:
Offset | Field | Size(Bytes) | Description |
0 | dwDTERate | 4 | Bit rate (bits per second) |
4 | bCharFormat | 1 | Stop bits: 0 = 1 Stop bit, 1 = 1.5 Stop bits, 2 = 2 Stop bits |
5 | bParityType | 1 | Parity: 0 = None, 1 = Odd, 2 = Even, 3 = Mark, 4 = Space |
6 | bDataBits | 1 | Number of data bits (5, 6, 7, 8, or 16) |
Definition at line 115 of file usb_class_requests.c.
void sendEncapsulatedCommand | ( | void | ) |
This method sends encapsulated commands to the host.
At the current version there are no encapsulated commands.
Definition at line 37 of file usb_class_requests.c.