use num_derive::FromPrimitive;
#[repr(u8)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum MessageTypes { HubProperties = 0x01, HubActions = 0x02, HubAlerts = 0x03, HubAttachedIO = 0x04, GenericErrorMessages = 0x05, HWNetWorkCommands = 0x08, FWUpdateGoIntoBootMode = 0x10, FWUpdateLockMemory = 0x11, FWUpdateLockStatusRequest = 0x12, FWLockStatus = 0x13,
PortInformationRequest = 0x21, PortModeInformationRequest = 0x22, PortInputFormatSetupSingle = 0x41, PortInputFormatSetupCombinedMode = 0x42, PortInformation = 0x43, PortModeInformation = 0x44, PortValueSingle = 0x45, PortValueCombinedMode = 0x46, PortInputFormatSingle = 0x47, PortInputFormatCombinedMode = 0x48, VirtualPortSetup = 0x61, PortOutputCommand = 0x81, PortOutputCommandFeedback = 0x82, }
#[derive(Clone, Copy)]
pub enum SubcommandType {
StartPowerSync = 0x02,
SetAccTime = 0x05,
SetDecTime = 0x06,
StartSpeed = 0x07,
StartSpeedSync = 0x08,
StartSpeedForTime = 0x09,
StartSpeedForTimeSync = 0x0a,
StartSpeedForDegrees = 0x0b,
StartSpeedForDegreesSync = 0x0c,
GotoAbsolutePosition = 0x0d,
GotoAbsolutePositionSync = 0x0e,
WriteDirectModeData = 0x51,
}