Okay, the USB stuff works! I can send a command to the device and receive the

reply.
This commit is contained in:
David Given
2018-09-29 12:13:00 +02:00
parent 09ec9065cc
commit 7d98ec7e01
5 changed files with 46 additions and 10 deletions

View File

@@ -7,11 +7,18 @@ enum
FLUXENGINE_VID = 0xF055,
FLUXENGINE_PID = 0x9973,
/* libusb uses these numbers */
FLUXENGINE_DATA_OUT_EP = 0x01,
FLUXENGINE_DATA_IN_EP = 0x82,
FLUXENGINE_CMD_OUT_EP = 0x03,
FLUXENGINE_CMD_IN_EP = 0x84,
/* the PSoC code uses these, sigh */
FLUXENGINE_DATA_OUT_EP_NUM = FLUXENGINE_DATA_OUT_EP & 0x0f,
FLUXENGINE_DATA_IN_EP_NUM = FLUXENGINE_DATA_IN_EP & 0x0f,
FLUXENGINE_CMD_OUT_EP_NUM = FLUXENGINE_CMD_OUT_EP & 0x0f,
FLUXENGINE_CMD_IN_EP_NUM = FLUXENGINE_CMD_IN_EP & 0x0f,
};
enum