/*
* Automatically generated by jrpcgen 1.0.7 on 4/18/2014
* jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C#
* See http://remotetea.sourceforge.net for details
*/
using org.acplt.oncrpc;
namespace SPIAgent
{
///
/// Raspberry Pi LPC1114 I/O Processor Expansion Board SPI Agent Firmware command message object
///
public class SPIAGENT_COMMAND_MSG_t : XdrAble
{
///
/// Command code to SPI Agent Firmware
///
public int command;
///
/// Pin number to SPI Agent Firmware
///
public int pin;
///
/// Data item to SPI Agent Firmware
///
public int data;
///
/// Default parameterless constructor.
///
public SPIAGENT_COMMAND_MSG_t()
{
}
///
/// Constructor accepting XDR decoding object (Used internally)
///
///
public SPIAGENT_COMMAND_MSG_t(XdrDecodingStream xdr)
{
xdrDecode(xdr);
}
///
/// XDR encoding method. (Used internally)
///
///
public void xdrEncode(XdrEncodingStream xdr)
{
xdr.xdrEncodeInt(command);
xdr.xdrEncodeInt(pin);
xdr.xdrEncodeInt(data);
}
///
/// XDR decoding method (Used internally)
///
///
public void xdrDecode(XdrDecodingStream xdr)
{
command = xdr.xdrDecodeInt();
pin = xdr.xdrDecodeInt();
data = xdr.xdrDecodeInt();
}
}
}
// End of SPIAGENT_COMMAND_MSG_t.cs