Subaru.SSM2.Ssm2InitResponse.Ssm2InitResponse C# (CSharp) Method

Ssm2InitResponse() public method

Creates a complete InitResponse packet.
public Ssm2InitResponse ( Ssm2Device destination, Ssm2Device source, byte ssmID, byte romID, byte capabilities ) : System
destination Ssm2Device
source Ssm2Device
ssmID byte
romID byte
capabilities byte
return System
        public Ssm2InitResponse(Ssm2Device destination,
		                         Ssm2Device source,
		                         byte[] ssmID,
		                         byte[] romID,
		                         byte[] capabilities)
            : base(capabilities.Length + (HeaderLength + LengthSsmID + LengthRomID + 1))
        {
            this.Destination = destination;
            this.Source = source;

            SetSsmID (ssmID);
            SetRomID (romID);
            // setting capability bytes also updates size
            SetCapabilities (capabilities);

            this.Finish ();
        }

Same methods

Ssm2InitResponse::Ssm2InitResponse ( ) : System
Ssm2InitResponse::Ssm2InitResponse ( byte buffer ) : System