Class LockPayload
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
Encapsulates the restrictions available to protect an EPC C1G2 transponder
public class LockPayload
- Inheritance
-
LockPayload
- Inherited Members
Constructors
LockPayload()
Initializes a new instance of the LockPayload class with no change restrictions
public LockPayload()
LockPayload(int)
Initializes a new instance of the LockPayload class with the specified payload
public LockPayload(int payload)
Parameters
payload
intThe payload for the lock restrictions
Properties
AccessPasswordRestriction
Gets or sets how the access password (in the reserved memory bank) can be modified
public PasswordRestriction AccessPasswordRestriction { get; set; }
Property Value
EpcMemoryBankRestriction
Gets or sets how the EPC memory bank can be modified
public MemoryBankRestriction EpcMemoryBankRestriction { get; set; }
Property Value
KillPasswordRestriction
Gets or sets how the kill password (in the reserved memory bank) can be modified
public PasswordRestriction KillPasswordRestriction { get; set; }
Property Value
Payload
Gets or sets all the restrictions as a Lock Command Payload
public int Payload { get; set; }
Property Value
Remarks
See the EPC Global Class 1 Generation 2 specification for the lock command payload bit mask
The set accessor only accepts changing the restriction on a per memory/password basis. i.e. If you adjust a permission you must change both bits
Exceptions
- ArgumentOutOfRangeException
If the mask bits for a particular section is not set together (i.e. mask bits are not 00 or 11)
TidMemoryBankRestriction
Gets or sets how the TID memory bank can be modified
public MemoryBankRestriction TidMemoryBankRestriction { get; set; }
Property Value
UserMemoryBankRestriction
Gets or sets how the User memory bank can be modified
public MemoryBankRestriction UserMemoryBankRestriction { get; set; }
Property Value
Methods
Parse(int)
Parse the restrictions from a C1G2 payload
public static LockPayload Parse(int payload)
Parameters
payload
intThe payload to parse
Returns
- LockPayload
The restriction from the payload
ToPayload(LockPayload)
Convert the restriction to a C1G2 compatible payload value
public static int ToPayload(LockPayload payload)
Parameters
payload
LockPayloadThe restriction to convert to a payload
Returns
- int
The lock payload