libnifalcon  1.0.1
Namespaces | Macros
FalconCommLibUSB.cpp File Reference
#include "falcon/comm/FalconCommLibUSB.h"
#include <iostream>
#include <cstdio>
#include <cstring>
#include "libusb-1.0/libusb.h"
+ Include dependency graph for FalconCommLibUSB.cpp:

Namespaces

 libnifalcon
 

Macros

#define SIO_RESET   0 /* Reset the port */
 
#define SIO_MODEM_CTRL   1 /* Set the modem control register */
 
#define SIO_SET_FLOW_CTRL   2 /* Set flow control register */
 
#define SIO_SET_BAUD_RATE   3 /* Set baud rate */
 
#define SIO_SET_DATA   4 /* Set the data characteristics of the port */
 
#define SIO_RESET_REQUEST_TYPE   0x40
 
#define SIO_RESET_REQUEST   SIO_RESET
 
#define SIO_RESET_SIO   0
 
#define SIO_RESET_PURGE_RX   1
 
#define SIO_RESET_PURGE_TX   2
 
#define SIO_SET_BAUDRATE_REQUEST_TYPE   0x40
 
#define SIO_SET_BAUDRATE_REQUEST   SIO_SET_BAUD_RATE
 
#define SIO_SET_DATA_REQUEST_TYPE   0x40
 
#define SIO_SET_DATA_REQUEST   SIO_SET_DATA
 
#define SIO_SET_FLOW_CTRL_REQUEST   SIO_SET_FLOW_CTRL
 
#define SIO_SET_FLOW_CTRL_REQUEST_TYPE   0x40
 
#define SIO_DISABLE_FLOW_CTRL   0x0
 
#define SIO_RTS_CTS_HS   (0x1 << 8)
 
#define SIO_DTR_DSR_HS   (0x2 << 8)
 
#define SIO_XON_XOFF_HS   (0x4 << 8)
 
#define SIO_SET_MODEM_CTRL_REQUEST_TYPE   0x40
 
#define SIO_SET_MODEM_CTRL_REQUEST   SIO_MODEM_CTRL
 
#define SIO_SET_DTR_MASK   0x1
 
#define SIO_SET_DTR_HIGH   ( 1 | ( SIO_SET_DTR_MASK << 8))
 
#define SIO_SET_DTR_LOW   ( 0 | ( SIO_SET_DTR_MASK << 8))
 
#define SIO_SET_RTS_MASK   0x2
 
#define SIO_SET_RTS_HIGH   ( 2 | ( SIO_SET_RTS_MASK << 8 ))
 
#define SIO_SET_RTS_LOW   ( 0 | ( SIO_SET_RTS_MASK << 8 ))
 
#define SIO_RTS_CTS_HS   (0x1 << 8)
 
#define INTERFACE_ANY   0
 
#define INTERFACE_A   1
 
#define INTERFACE_B   2
 

Macro Definition Documentation

#define INTERFACE_A   1
#define INTERFACE_ANY   0
#define INTERFACE_B   2
#define SIO_DISABLE_FLOW_CTRL   0x0
#define SIO_DTR_DSR_HS   (0x2 << 8)
#define SIO_MODEM_CTRL   1 /* Set the modem control register */
#define SIO_RESET   0 /* Reset the port */
#define SIO_RESET_PURGE_RX   1
#define SIO_RESET_PURGE_TX   2
#define SIO_RESET_REQUEST   SIO_RESET
#define SIO_RESET_REQUEST_TYPE   0x40
#define SIO_RESET_SIO   0
#define SIO_RTS_CTS_HS   (0x1 << 8)
#define SIO_RTS_CTS_HS   (0x1 << 8)
#define SIO_SET_BAUD_RATE   3 /* Set baud rate */
#define SIO_SET_BAUDRATE_REQUEST   SIO_SET_BAUD_RATE
#define SIO_SET_BAUDRATE_REQUEST_TYPE   0x40
#define SIO_SET_DATA   4 /* Set the data characteristics of the port */
#define SIO_SET_DATA_REQUEST   SIO_SET_DATA
#define SIO_SET_DATA_REQUEST_TYPE   0x40
#define SIO_SET_DTR_HIGH   ( 1 | ( SIO_SET_DTR_MASK << 8))
#define SIO_SET_DTR_LOW   ( 0 | ( SIO_SET_DTR_MASK << 8))
#define SIO_SET_DTR_MASK   0x1
#define SIO_SET_FLOW_CTRL   2 /* Set flow control register */
#define SIO_SET_FLOW_CTRL_REQUEST   SIO_SET_FLOW_CTRL
#define SIO_SET_FLOW_CTRL_REQUEST_TYPE   0x40
#define SIO_SET_MODEM_CTRL_REQUEST   SIO_MODEM_CTRL
#define SIO_SET_MODEM_CTRL_REQUEST_TYPE   0x40
#define SIO_SET_RTS_HIGH   ( 2 | ( SIO_SET_RTS_MASK << 8 ))
#define SIO_SET_RTS_LOW   ( 0 | ( SIO_SET_RTS_MASK << 8 ))
#define SIO_SET_RTS_MASK   0x2
#define SIO_XON_XOFF_HS   (0x4 << 8)