Example #1
0
 private void SetControlByte(QTControlByte ctrlByte)
 {
     //control byte
     ControlByte = 0x00;
     if (ctrlByte.QTReadWrite)
     {
         ControlByte |= 0x80;
     }
     if (ctrlByte.Persistence)
     {
         ControlByte |= 0x40;
     }
 }
Example #2
0
 /// <summary>
 /// Constructor to initialize the parameters QTReadWrite
 /// </summary>
 /// <param name="accessPassword">the access password</param>
 /// <param name="payLoad">comprises of qtSR - Bit 15 (MSB) is first transmitted bit of the
 /// payload field and qtMEM - Tag uses Public/Private Memory Map
 /// </param>
 /// <param name="controlByte">comprises of qtReadWrite - The Read/Write field indicates whether the tag
 /// reads or writes QT control data and
 /// </param>
 public QTReadWrite(UInt32 accessPassword, QTPayload payLoad, QTControlByte controlByte)
 {
     ChipType = 0x08;
     this.AccessPassword = accessPassword;
     SetPayload(payLoad);
     SetControlByte(controlByte);
 }