/// <summary> /// Creates and initializes a new system exclusive message to request data. /// </summary> /// <param name="address">The physical INTEGRA-7 address of the data.</param> /// <param name="request">The data request.</param> /// <remarks><i>Request</i></remarks> public IntegraSystemExclusive(IntegraAddress address, IntegraRequest request) { Address = address; Data = request; CalculateChecksum(); }
/// <summary> /// Creates and initializes a new system exclusive message to transmit data. /// </summary> /// <param name="address">The physical INTEGRA-7 base address of the model.</param> /// <param name="offset">The property offset into the model's base address.</param> /// <param name="data">The serialized MIDI data.</param> public IntegraSystemExclusive(IntegraAddress address, IntegraAddress offset, byte[] data) { Debug.Assert(data.All(x => x <= IntegraConstants.MAX_MIDI_VALUE)); Address = address + offset; Data = data; Mode = SYX_MODE_TX; CalculateChecksum(); }