Beispiel #1
0
            /// <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);
            }
Beispiel #2
0
            /// <summary>
            /// 写入高级信息
            /// </summary>
            /// <param name="door"></param>
            /// <param name="expert"></param>
            /// <returns></returns>
            public bool SetDoorExpertInfo(byte door, DOOR_EXPERT expert)
            {
                int success = AccessV2_SetDoorExpertInfo(m_CurrentDevice, door, ref expert);

                return(success != 0);
            }
Beispiel #3
0
 private static extern int AccessV2_SetDoorExpertInfo(UInt32 devNum, byte door
                                                      , ref DOOR_EXPERT expert);
Beispiel #4
0
 private static extern int AccessV2_GetDoorInfo(UInt32 devNum, byte door
                                                , ref DOOR_BASIC basic, ref DOOR_EXPERT expert);