예제 #1
0
        // -------- 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);
        }
예제 #2
0
 public void SetIIN(IINField field)
 {
     buffer_bytes[2] = field.LSB;
     buffer_bytes[3] = field.MSB;
 }
예제 #3
0
 public AppResponseHeader(AppControlField field, FunctionCode code, IINField iin_field)
 {
     control  = field;
     function = code;
     iin      = iin_field;
 }
예제 #4
0
        // 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);
        }
예제 #5
0
 public bool CheckIINField(IINField field)
 {
     return((LSB == field.LSB) && (MSB == field.MSB));
 }