//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% public C_MotorDataRow(e_motorDataType _dataType) { if (dataType == e_motorDataType.regByteValue) { throw new Exception("Cannot create MotorDataRow with motorDataType = regByteValue, without specifying register byte address - please use different constructor!"); } dataType = _dataType; name = EnumGetDescription.GetDescription((e_motorDataType)dataType); motStrings = new string[3]; letter_regByteType = ' '; address = 0; REFRESH(); }
public static string GET_motorDataTypeInfo(C_Packet packet) { return(EnumGetDescription.GetDescription(packet.motorDataType)); }