-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuDMX_cmds.h
40 lines (30 loc) · 963 Bytes
/
uDMX_cmds.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __usb_cmds_included_included__
#define __usb_cmds_included_included__
/*
* usb2dmx_cmds.h
*
*
* Created by Max Egger on 14.02.06.
*
*/
#define cmd_SetSingleChannel 1
/* usb request for cmd_SetSingleChannel:
bmRequestType: ignored by device, should be USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT
bRequest: cmd_SetSingleChannel
wValue: value of channel to set [0 .. 255]
wIndex: channel index to set [0 .. 511]
wLength: ignored
*/
#define cmd_SetChannelRange 2
/* usb request for cmd_SetChannelRange:
bmRequestType: ignored by device, should be USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT
bRequest: cmd_SetChannelRange
wValue: number of channels to set [1 .. 512-wIndex]
wIndex: index of first channel to set [0 .. 511]
wLength: length of data, must be >= wValue
*/
#define cmd_StartBootloader 0xf8
// Start Bootloader for Software updates
#define err_BadChannel 1
#define err_BadValue 2
#endif