ApplyCurrentAccessCode Method
ApplyCurrentAccessCode(ReadOnlySpan<Byte>)
Adds the access code currently protecting the configuration to the command. This is needed to apply a new configuration to a write-protected slot.
C#
public void ApplyCurrentAccessCode(ReadOnlySpan<byte> accessCode)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | accessCode | The current access code to the configurable slot. |
Remarks
If the configurable slot is protected by an access code, that code must be supplied by the caller through this method. If the intention is to retain the access code and leave its value unchanged, the SetAccessCode(ReadOnlySpan<Byte>) function must also be called. Failure to do so will result in the access code being removed from the slot, effectively making it unprotected.