public GPIOObject(string Name, GPIOTyp typ, int PinNo, double initValue, double SetValue) { //m_ScatterLineSeries = lineSeries; m_PinName = string.Format("{0}.{1:00}", Name, PinNo);; switch (typ) { case GPIOTyp.input: m_GPIOName = string.Format("GPI.{0:00}", PinNo);; break; case GPIOTyp.output: m_GPIOName = string.Format("GPO.{0:00}", PinNo);; break; default: m_GPIOName = string.Format("GPIO.{0:00}", PinNo);; break; } m_PulseTime = 0; m_GPIOTyp = typ; m_PinValue = 0; m_InitValue = initValue; m_SetValue = SetValue; m_PinNumber = PinNo; m_IsOnBitmapImage = null; m_IsOffBitmapImage = null; m_IsEnabled = true; m_ViewName = m_PinName; m_EventName = "no Event"; m_IsEventEnabled = false; m_EventAccessRights = 0; m_IsFlankActive = false; }
public GPIOObject(string Name, GPIOTyp typ, int PinNo, double initValue, double SetValue) { //m_ScatterLineSeries = lineSeries; m_PinName = string.Format("{0}.{1:00}", Name, PinNo);; switch (typ) { case GPIOTyp.input: m_GPIOName = string.Format("GPI.{0:00}", PinNo);; break; case GPIOTyp.output: m_GPIOName = string.Format("GPO.{0:00}", PinNo);; break; default: m_GPIOName = string.Format("GPIO.{0:00}", PinNo);; break; } m_GPIOTyp = typ; m_PinValue = 0; m_InitValue = initValue; m_SetValue = SetValue; m_PinNumber = PinNo; m_IsOnBitmapImage = null; m_IsOffBitmapImage = null; }
public GPIOObject() { m_PinName = ""; m_PulseTime = 0; m_GPIOTyp = GPIOTyp.input; m_PinValue = 0; m_InitValue = 0; m_SetValue = 0; m_PinNumber = 0; m_IsOnBitmapImage = null; m_IsOffBitmapImage = null; m_IsEnabled = true; m_ViewName = m_PinName; m_EventName = "no Event"; m_IsEventEnabled = false; m_EventAccessRights = 0; m_IsFlankActive = false; }