Exemple #1
0
 public MemBnkWrEventArgs(ref UINT96_T epc, MemoryBanks4Op bnk, ushort offset, ushort cnt)
 {
     this.EPC      = epc;
     this.BankNum  = bnk;
     this.wdOffset = offset;
     this.wdCnt    = cnt;
 }
Exemple #2
0
        //public MemBnkRdEventArgs(ref UInt16 crc, ref UInt16 pc, ref UINT96_T epc,
        //   RFID_18K6C_MEMORY_BANK bankNum, String data, UInt16 RSSI)
        //{

        //}

        public MemBnkRdEventArgs(ref UInt16 crc, ref UInt16 pc, ref UINT96_T epc,
                                 RFID_18K6C_MEMORY_BANK bankNum, String data, UInt16 RSSI)
        {
            this.CRC = crc;
            this.PC  = pc;
            this.EPC = epc; // shallow copy is enough

            switch (bankNum)
            {
            case RFID_18K6C_MEMORY_BANK.RFID_18K6C_MEMORY_BANK_RESERVED:
                this.BankNum = MemoryBanks4Op.Zero;
                break;

            case RFID_18K6C_MEMORY_BANK.RFID_18K6C_MEMORY_BANK_EPC:
                this.BankNum = MemoryBanks4Op.One;
                break;

            case RFID_18K6C_MEMORY_BANK.RFID_18K6C_MEMORY_BANK_TID:
                this.BankNum = MemoryBanks4Op.Two;
                break;

            case RFID_18K6C_MEMORY_BANK.RFID_18K6C_MEMORY_BANK_USER:
                this.BankNum = MemoryBanks4Op.Three;
                break;

            default:
                this.BankNum = MemoryBanks4Op.Zero;
                break;
            }

            this.Data = data;
            this.RSSI = RSSI;
        }
Exemple #3
0
 public WrOpEventArgs(WrOpStatus update, String errMsg)
 {
     Status    = update;
     ErrMsg    = errMsg;
     TagAccErr = AccErrorTypes.None;
     AccTagPC  = 0;
     AccTagEPC = new UINT96_T();
 }
Exemple #4
0
 public DscvrTagEventArgs(UInt16 PC, ref UINT96_T EPC)
 {
     this.PC  = PC;
     this.EPC = EPC;
     Cnt      = 0;
     RSSI     = 0.0F;
     UpdateTm = new FileTime();
 }
Exemple #5
0
 public DscvrTagEventArgs(UInt16 PC, ref UINT96_T EPC, UInt16 cnt, float wbRSSI, FileTime fTime)
 {
     this.PC  = PC;
     this.EPC = EPC;
     Cnt      = cnt;
     RSSI     = wbRSSI;
     UpdateTm = fTime;
 }
Exemple #6
0
 public WrOpEventArgs(WrOpStatus update, String errMsg,
                      AccErrorTypes tagErr, UInt16 tagPC, UINT96_T tagEPC)
 {
     Status    = update;
     ErrMsg    = errMsg;
     TagAccErr = tagErr;
     AccTagPC  = tagPC;
     AccTagEPC = tagEPC;
 }
Exemple #7
0
 public DscvrTagEventArgs(UInt16[] PCArr, UINT96_T[] EPCArr, float[] RSSIArr, FileTime[] FTArr)
 {
     // for initialization only, meaningless in this case
     PC                   = 0;
     EPC                  = new UINT96_T();
     Cnt                  = 0;
     RSSI                 = 0.0F;
     UpdateTm             = new FileTime();
     this.PCArr           = PCArr != null ? ((UInt16[])PCArr.Clone()) : null;
     this.EPCArr          = EPCArr != null ? ((UINT96_T[])EPCArr.Clone()) : null; // shallow copy
     this.RSSIArr         = RSSIArr != null ? ((float[])RSSIArr.Clone()) : null;
     this.LastInvtryTmArr = FTArr != null ? ((FileTime[])FTArr.Clone()) : null;   // shallow copy
 }
Exemple #8
0
 public MemBnkWrEventArgs(ref UINT96_T epc, MemoryBanks4Op bnk)
 {
     this.EPC     = epc;
     this.BankNum = bnk;
 }