![]() |
Barst
2.0
A server that controls lab hardware.
|
#include <cpl defs.h>
Public Attributes | |
unsigned short | usBytesUsed |
unsigned char | ucActivePins |
unsigned char | ucInitialVal |
bool | bContinuous |
Initialization struct to create an FTDI device which provides direct access to the pins on the USB device - like in bit bang mode. You can individually control one or more bits of the 8-bit USB bus both as input or output. The eType variable used in the prefacing SBase determines if it's a input or output device.
Definition at line 270 of file cpl defs.h.
bool SPinInit::bContinuous |
If this is an input device, and if true than we will continuosly read and send the data read to the client that initially triggered this device. This ensures we read as much data as possible. If it's a output device we ignore this parameter.
Definition at line 285 of file cpl defs.h.
unsigned char SPinInit::ucActivePins |
Which pins are active for this device, either as input or output. The bits set will be the active pins for this device.
Definition at line 278 of file cpl defs.h.
unsigned char SPinInit::ucInitialVal |
If this is an output device, what the initial value (high/low) will be for the active pins.
Definition at line 281 of file cpl defs.h.
unsigned short SPinInit::usBytesUsed |
The number of bytes that will be written or read from the bus. For instance, you can clock out a given number of bytes with the baud rate of the device (which are defined in FTDI_MAX_BUFF_H/L, FTDI_BAUD_2232H/DEFAULT).
Definition at line 275 of file cpl defs.h.