// -------- responses ------------- public void NullUnsolicited(APDUWrapper response, byte seq, IINField iin) { response.SetControl(new AppControlField(true, true, true, true, seq)); response.SetFunction(FunctionCode.UNSOLICITED_RESPONSE); response.SetIIN(iin); }
public void SetIIN(IINField field) { buffer_bytes[2] = field.LSB; buffer_bytes[3] = field.MSB; }
public AppResponseHeader(AppControlField field, FunctionCode code, IINField iin_field) { control = field; function = code; iin = iin_field; }
// The IIN is only used for the APDU response from the Outstation public IINField GetIIN() { var field = new IINField(buffer_bytes[2], buffer_bytes[3]); return(field); }
public bool CheckIINField(IINField field) { return((LSB == field.LSB) && (MSB == field.MSB)); }