/// <summary> /// Set all channel configuration /// </summary> /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param> /// <param name="lChannel">Channel number</param> /// <param name="netConfig">channel configuration</param> /// <param name="waittime">waittime</param> /// <returns>true:succeed;false:fail</returns> public static bool NETSetDevConfig(int lLoginID, NETDEV_CHANNEL_CFG[] channelConfig) { return NETSetDevConfig(lLoginID, channelConfig, 3000); }
/// <summary> /// Set all channel configuration /// </summary> /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param> /// <param name="lChannel">channel NUMBER</param> /// <param name="netConfig">channel configuration</param> /// <param name="waittime">waittime</param> /// <returns>true:succeed;false:fail</returns> public static bool NETSetDevConfig(int lLoginID, NETDEV_CHANNEL_CFG[] channelConfig, int waittime) { object[] result = new object[channelConfig.Length]; for (int i = 0; i < channelConfig.Length; i++) { result[i] = (object)channelConfig[i]; } bool returnValue = false; returnValue = PSetDevConfig(lLoginID, CONFIG_COMMAND.NET_DEV_CHANNELCFG, result, typeof(NETDEV_CHANNEL_CFG), waittime); return returnValue; }
/// <summary> /// For specified channel configuration [the default wait time 3000] /// </summary> /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param> /// <param name="lChannel">Channel number [this value to 1]</param> /// <param name="netConfig">Channel Configuration</param> /// <returns>true:succeed;false:fail</returns> public static bool NETGetDevConfig(int lLoginID, int lChannel, ref NETDEV_CHANNEL_CFG channelConfig) { return NETGetDevConfig(lLoginID, lChannel, ref channelConfig); }
/// <summary> /// Set the specified channel configuration /// </summary> /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param> /// <param name="lChannel">Channel number [this value to 1]</param> /// <param name="netConfig"> Channel Configuration</param> /// <param name="waittime">waittime</param> /// <returns>true:succeed;false:fai;</returns> public static bool NETSetDevConfig(int lLoginID, int lChannel, NETDEV_CHANNEL_CFG channelConfig, int waittime) { bool returnValue = false; returnValue = PSetDevConfig(lLoginID, lChannel, CONFIG_COMMAND.NET_DEV_CHANNELCFG,(object)channelConfig, typeof(NETDEV_CHANNEL_CFG), waittime); return returnValue; }
/// <summary> /// Access to specified channel configuration /// </summary> /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param> /// <param name="lChannel">Channel number [this value to 1]</param> /// <param name="netConfig">Channel Configuration</param> /// <param name="waittime">waittime</param> /// <returns>true:succeed;false:fail</returns> public static bool NETGetDevConfig(int lLoginID, int lChannel, ref NETDEV_CHANNEL_CFG channelConfig, int waittime) { object result = new object(); bool returnValue = false; returnValue = PGetDevConfig(lLoginID, lChannel, CONFIG_COMMAND.NET_DEV_CHANNELCFG, ref result, typeof(NETDEV_CHANNEL_CFG), waittime); channelConfig = (NETDEV_CHANNEL_CFG)result; return returnValue; }