TwiceAsNice
2019-02-18
|
#include <stdbool.h>
Classes | |
struct | fx_known_device |
Macros | |
#define | FX_TYPE_UNDEFINED -1 |
#define | FX_TYPE_AN21 0 /* Original AnchorChips parts */ |
#define | FX_TYPE_FX1 1 /* Updated Cypress versions */ |
#define | FX_TYPE_FX2 2 /* USB 2.0 versions */ |
#define | FX_TYPE_FX2LP 3 /* Updated FX2 */ |
#define | FX_TYPE_FX3 4 /* USB 3.0 versions */ |
#define | FX_TYPE_MAX 5 |
#define | FX_TYPE_NAMES { "an21", "fx", "fx2", "fx2lp", "fx3" } |
#define | IMG_TYPE_UNDEFINED -1 |
#define | IMG_TYPE_HEX 0 /* Intel HEX */ |
#define | IMG_TYPE_IIC 1 /* Cypress 8051 IIC */ |
#define | IMG_TYPE_BIX 2 /* Cypress 8051 BIX */ |
#define | IMG_TYPE_IMG 3 /* Cypress IMG format */ |
#define | IMG_TYPE_MAX 4 |
#define | IMG_TYPE_NAMES { "Intel HEX", "Cypress 8051 IIC", "Cypress 8051 BIX", "Cypress IMG format" } |
#define | FX_KNOWN_DEVICES |
Functions | |
int | ezusb_load_ram (libusb_device_handle *device, const char *path, int fx_type, int img_type, int stage) |
int | ezusb_load_eeprom (libusb_device_handle *device, const char *path, int fx_type, int img_type, int config) |
Variables | |
int | verbose |
#define FX_KNOWN_DEVICES |
#define FX_TYPE_AN21 0 /* Original AnchorChips parts */ |
#define FX_TYPE_FX1 1 /* Updated Cypress versions */ |
#define FX_TYPE_FX2 2 /* USB 2.0 versions */ |
#define FX_TYPE_FX2LP 3 /* Updated FX2 */ |
#define FX_TYPE_FX3 4 /* USB 3.0 versions */ |
#define FX_TYPE_MAX 5 |
#define FX_TYPE_NAMES { "an21", "fx", "fx2", "fx2lp", "fx3" } |
#define FX_TYPE_UNDEFINED -1 |
#define IMG_TYPE_BIX 2 /* Cypress 8051 BIX */ |
#define IMG_TYPE_HEX 0 /* Intel HEX */ |
#define IMG_TYPE_IIC 1 /* Cypress 8051 IIC */ |
#define IMG_TYPE_IMG 3 /* Cypress IMG format */ |
#define IMG_TYPE_MAX 4 |
#define IMG_TYPE_NAMES { "Intel HEX", "Cypress 8051 IIC", "Cypress 8051 BIX", "Cypress IMG format" } |
#define IMG_TYPE_UNDEFINED -1 |
int ezusb_load_eeprom | ( | libusb_device_handle * | device, |
const char * | path, | ||
int | fx_type, | ||
int | img_type, | ||
int | config | ||
) |
int ezusb_load_ram | ( | libusb_device_handle * | device, |
const char * | path, | ||
int | fx_type, | ||
int | img_type, | ||
int | stage | ||
) |
int verbose |