Пример #1
0
        private errorState errCODE(byte rAbase, byte rVbase, byte rSbase, byte oBase, byte rAext, byte rVext, byte rSext, byte oExt, string hExt, string lExt)
        {
            errorState result = new errorState();

            result.isActive = Buffer[rAbase].GetBit(oBase);
            result.isStored = Buffer[rSbase].GetBit(oBase);
            result.Reason   = "FIAT CODE";
            return(result);
        }
Пример #2
0
        }                                                                        // Power-Latch OK

        #endregion
        #region Errors decoding functions
        private errorState err16F(byte rAbase, byte rVbase, byte rSbase, byte oBase, byte rAext, byte rVext, byte rSext, byte oExt, string hExt, string lExt)
        {
            errorState result = new errorState();

            result.isActive = Buffer[rAbase].GetBit(oBase);
            result.isStored = Buffer[rSbase].GetBit(oBase);
            //result.Reason = (Buffer[rAbase].GetBit(oBase) ? Buffer[rAext].GetBit(oExt) : Buffer[rSext].GetBit(oExt)) ? hExt : lExt;
            result.Reason = (Buffer[rSbase].GetBit(oBase) ? Buffer[rSext].GetBit(oExt) : Buffer[rAext].GetBit(oExt)) ? hExt : lExt;
            return(result);
        }
Пример #3
0
        }                                                                        // Power-Latch OK

        #endregion
        #region Errors decoding functions
        // example:                      0x10,             0,        0x14,          0,       0x2B,          0,       0x2E,         0, lang.ShortToGND, lang.ShortToVcc
        private errorState err8F_68(byte rAbase, byte rVbase, byte rSbase, byte oBase, byte rAext, byte rVext, byte rSext, byte oExt, string hExt, string lExt)
        {   // A = Active, V = Verified, S = Stored
            errorState result = new errorState();

            result.isActive = Buffer[rAbase].GetBit(oBase);
            result.isStored = Buffer[rSbase].GetBit(oBase);

            // 8f_68 doesn't give a reason for an error code, at least, not that we know of...
            result.Reason = "";

            return(result);
        }
Пример #4
0
        private errorState err04K(byte rAbase, byte rVbase, byte rSbase, byte oBase, byte rAext, byte rVext, byte rSext, byte oExt, string hExt, string lExt)
        {
            errorState result = new errorState();

            result.isActive = Buffer[rAbase].GetBit(oBase);
            result.isStored = Buffer[rSbase].GetBit(oBase);
            if (rAext != 0)
            {
                result.Reason = (Buffer[rAbase].GetBit(oBase) ? Buffer[rAext].GetBit(oExt) : Buffer[rVbase].GetBit(oBase) ? Buffer[rVext].GetBit(oExt) : Buffer[rSext].GetBit(oExt)) ? hExt : lExt;
            }
            else
            {
                result.Reason = "";
            }
            return(result);
        }