diff options
author | Thomas O Fredericks <mrtof@users.sourceforge.net> | 2009-12-18 14:34:07 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:08:22 +0200 |
commit | e15e9a50eb5932538d92c10f49a09ad968cb0f43 (patch) | |
tree | 0b099cde681a8119d435c1991884d520de76643f /uDMX/uDMX_cmds.h | |
parent | f467f395ebda720ece4debd60d3531586fa432be (diff) |
Added uDMX to hardware
svn path=/trunk/externals/hardware/; revision=12839
Diffstat (limited to 'uDMX/uDMX_cmds.h')
-rw-r--r-- | uDMX/uDMX_cmds.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/uDMX/uDMX_cmds.h b/uDMX/uDMX_cmds.h new file mode 100644 index 0000000..12a72af --- /dev/null +++ b/uDMX/uDMX_cmds.h @@ -0,0 +1,31 @@ +/* + * 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 |