2019-07-13 21:22:43 +00:00
|
|
|
#ifndef __FTDI_DEV_H__
|
|
|
|
#define __FTDI_DEV_H__
|
|
|
|
|
2019-07-22 14:49:04 +00:00
|
|
|
#include <libftdi1/ftdi.h>
|
2019-07-13 21:22:43 +00:00
|
|
|
|
|
|
|
struct ftdi_dev {
|
|
|
|
struct ftdi_context *ftdi;
|
|
|
|
bool is_open;
|
|
|
|
unsigned int vendor_id;
|
|
|
|
unsigned int product_id;
|
|
|
|
unsigned char bit_mask; /* Mask of used bits */
|
|
|
|
unsigned char status_mask; /* Mask of current status of used bits */
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|