Exemplo n.º 1
0
        public static RecordNo Parse(byte[] datas)
        {
            RecordNo r = new RecordNo();

            r._fromAddress             = datas[ADDRESS_POS];
            r._currentHistoryRecordNo  = BCDConvert.BCDToDec(datas[CURRENT_HISTORY_RECORDNO_POS]);
            r._currentPoweroffRecordNo = BCDConvert.BCDToDec(datas[CURRENT_POWEROFF_RECORDNO_POS]);
            r._currentVibratoRecordNo  = BCDConvert.BCDToDec(datas[CURRENT_VIBRATO_RECORDNO_POS]);
            return(r);
        }
Exemplo n.º 2
0
 public static RecordNo Parse(byte[] datas)
 {
     RecordNo r = new RecordNo();
     r._fromAddress = datas[ ADDRESS_POS ];
     r._currentHistoryRecordNo  = BCDConvert.BCDToDec( datas[ CURRENT_HISTORY_RECORDNO_POS ] );
     r._currentPoweroffRecordNo = BCDConvert.BCDToDec( datas[ CURRENT_POWEROFF_RECORDNO_POS ] );
     r._currentVibratoRecordNo  = BCDConvert.BCDToDec( datas[ CURRENT_VIBRATO_RECORDNO_POS ] );
     return r;
 }