public ISensorModeState SetStateTransition(ISensorModeState newState) { ISensorModeState sensorModeState = this._command.SetStateTransition(newState); this.VerifyCommandResponse((ICauseError)sensorModeState); return(sensorModeState); }
public ISensorModeState GetInitialModeState() { ISensorModeState initialModeState = this._command.GetInitialModeState(); this.VerifyCommandResponse((ICauseError)initialModeState); return(initialModeState); }
public unsafe ISensorModeState SetStateTransition(ISensorModeState newState) { WorkSpace workSpace = TcpCommand.GetWorkSpace(typeof(RequestForSetStateTransition)); RequestForSetStateTransition *address = (RequestForSetStateTransition *)(void *)workSpace.Address; address->header.wCommHeaderId = (ushort)4427; address->header.byCommandKind = (byte)6; address->header.lBodyLength = 0; address->header.uOption0.abyCode[0] = (byte)newState.VisionSensorStateEnum; address->header.uOption0.abyCode[1] = (byte)newState.VisionSensorMode; address->header.uOption0.awCode[1] = (ushort)0; this.SendRequest(workSpace); TcpCommand.ReleaseWorkSpace(workSpace); WorkSpace fixedLengthReply = this.ReceiveFixedLengthReply(typeof(ReplyForSetStateTransition)); SensorModeState sensorModeState = new SensorModeState((ReplyForSetStateTransition *)(void *)fixedLengthReply.Address); TcpCommand.ReleaseReceiveBuffer(fixedLengthReply); return((ISensorModeState)sensorModeState); }
public void Set(ISensorModeState modeAndState) { this._sensorModeAndState = modeAndState; }