24 #define AMBX_EP_MAXPKTSIZE 40
27 #define AMBX_CONTROL_PIPE 0
28 #define AMBX_OUTPUT_PIPE 1
29 #define AMBX_INPUT_PIPE 2
32 #define AMBX_VID 0x0471
33 #define AMBX_PID 0x083F
36 #define AMBX_ENDPOINT_IN 0x81
37 #define AMBX_ENDPOINT_OUT 0x02
38 #define AMBX_ENDPOINT_PNP 0x83
41 #define AMBX_PREFIX_COMMAND 0xA1
42 #define AMBX_SET_COLOR_COMMAND 0x03
45 #define AMBX_LIGHT_LEFT 0x0B
46 #define AMBX_LIGHT_RIGHT 0x1B
49 #define AMBX_LIGHT_WW_LEFT 0x2B
50 #define AMBX_LIGHT_WW_CENTER 0x3B
51 #define AMBX_LIGHT_WW_RIGHT 0x4B
53 #define AMBX_LIGHT_COMMAND_BUFFER_SIZE 6
56 #define AMBX_MAX_ENDPOINTS 3
79 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
105 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
114 void setLight(uint8_t ambx_light, uint8_t r, uint8_t g, uint8_t b);
132 pFuncOnInit = funcOnInit;
151 void (*pFuncOnInit)(void);
156 void Light_Command(uint8_t *data, uint16_t nbytes);
#define AMBX_MAX_ENDPOINTS
#define AMBX_EP_MAXPKTSIZE
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
EpInfo epInfo[AMBX_MAX_ENDPOINTS]
void attachOnInit(void(*funcOnInit)(void))
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
void setAllLights(AmbxColorsEnum color)
void setLight(uint8_t ambx_light, uint8_t r, uint8_t g, uint8_t b)
virtual uint8_t GetAddress()