/// <summary> /// 读取门信息 /// </summary> /// <param name="door"></param> /// <param name="basic"></param> /// <param name="expert"></param> /// <returns></returns> public bool ReadDoorInfo(byte door, out DOOR_BASIC basic, out DOOR_EXPERT expert) { basic = new DOOR_BASIC(); expert = new DOOR_EXPERT(); int success = AccessV2_GetDoorInfo(m_CurrentDevice, door, ref basic, ref expert); return(success != 0); }
/// <summary> /// 写入门基础信息 /// </summary> /// <param name="door"></param> /// <param name="basic"></param> /// <returns></returns> public bool SetDoorBasicInfo(byte door, DOOR_BASIC basic) { int success = AccessV2_SetDoorBascInfo(m_CurrentDevice, door, ref basic); return(success != 0); }
private static extern int AccessV2_SetDoorBascInfo(UInt32 devNum, byte door , ref DOOR_BASIC basic);
private static extern int AccessV2_GetDoorInfo(UInt32 devNum, byte door , ref DOOR_BASIC basic, ref DOOR_EXPERT expert);