public override bool ActGetSignaled(TpmRh actHandle) { WriteInt(PlatformStream, (int)TcpTpmCommands.ActGetSignaled); WriteInt(PlatformStream, (int)actHandle); int status = ReadInt(PlatformStream); GetAck(PlatformStream, "ActGetSignaled"); if ((uint)status > 1) { Globs.Throw($"ActGetSignaled: invalid response '{status}' receieved (0 or 1 expected)"); } return(status == 1); }
/// <summary> /// Gets the GPIO state /// </summary> /// <param name="an">ACT number</param> /// <returns></returns> public virtual bool ActGetSignaled(TpmRh actHandle) { throw new Exception("Should never be here"); }
/// <summary> /// Create a reserved TPM handle. /// </summary> /// <param name="reservedHandle"></param> public TpmHandle(TpmRh reservedHandle) { handle = (uint)reservedHandle; }
public override bool ActGetSignaled(TpmRh actHandle) { return(Device.ActGetSignaled(actHandle)); }