protected CSignals JiFen(CSignals[] datas, int jfNum, Shared.SignalType type, uint signLen) { CSignals data = new CSignals(type, CMonData.RAW_LENGTH); for (int i = 0; i < Math.Min(jfNum, datas.Length); i++) { for (int j = 0; j < data.Length; j++) { data[j] = (sbyte)(data[j] | datas[i][j]); } } return(data); }
protected void mondata_pb(ref sbyte[] data, Shared.SignalType type, int pbcode) //信号屏蔽 { if (type == Shared.SignalType.CHE) { for (int i = 0; i < data.Length; i++) { if (((pbcode >> i) & 1) == 1) { data[i] = 0; } } } else { for (int i = 0; i < data.Length; i++) { if (((pbcode >> i) & 1) == 1) { data[i] = -1; } } } }