Exemple #1
0
        // Get Device Type (Page 113)
        public MmNamedCode GetDeviceType()
        {
            var dof  = 0xFFFFF0300020L;
            var d    = protocol.ReadQuadlet(dof);
            var code = ByteArrayToInt(d);

            return(new MmNamedCode(code, MmProtocolUtil.GetUnitType(code)));
        }
Exemple #2
0
        // Get Module Type (Page 108)
        public MmNamedCode GetModuleType(int module)
        {
            var dof  = 0xFFFFF0100000L + 0x3000 * module;
            var d    = protocol.ReadQuadlet(dof);
            var code = ByteArrayToInt(d);

            return(new MmNamedCode(code, MmProtocolUtil.GetModuleType(code)));
        }