예제 #1
0
 /// <summary>
 /// Constructor to initialize the parameters of SecureReadData
 /// </summary>
 /// <param name="bank">The memory bank to read</param>
 /// <param name="wordAddress">Read starting address</param>
 /// <param name="length">The length of data to read</param>
 /// <param name="type">Secure tag type</param>
 /// <param name="password">Password</param>
 public SecureReadData(Gen2.Bank bank, UInt32 wordAddress, byte length, SecureTagType type, TagAuthentication password) : base (bank,wordAddress,length)
 {
     this.type = type;
     this.password = password;
 }
예제 #2
0
            public Gen2KillArgs(TagFilter target, TagAuthentication password)
            {
                if (null == password)
                    Password = 0;

                else if (password is Gen2.Password)
                {
                    Target = target;
                    Password = ((Gen2.Password) password).Value;
                }

                else
                    throw new ArgumentException("Unsupported TagAuthentication: " + password.GetType().ToString());
            }
예제 #3
0
 /// <summary>
 /// Kill a tag. The first tag seen is killed.
 /// </summary>
 /// <param name="target">the tag target</param>
 /// <param name="password">the kill password</param>
 public override void KillTag(TagFilter target, TagAuthentication password)
 {
     PrepForTagop();
     SetField("tag_id.killed", new Gen2KillArgs(target, password));
 }
예제 #4
0
        /// <summary>
        /// Kill a tag. The first tag seen is killed.
        /// </summary>
        /// <param name="target">the tag target</param>
        /// <param name="password">the kill password</param>
        public override void KillTag(TagFilter target, TagAuthentication password)
        {
            if (null == password)
            {
                throw new ArgumentException("KillTag requires TagAuthentication: null not allowed");
            }

            else if (password is Gen2.Password)
            {
                UInt32 pwval = ((Gen2.Password)password).Value;
                ExecuteTagOp(new Gen2.Kill(pwval), target);
            }
            else
            {
                throw new ArgumentException("Unsupported TagAuthentication: " + password.GetType().ToString());
            }
        }