Exemplo n.º 1
0
 /// <summary>
 /// Handles received system exclusive messages by exact address match only.
 /// </summary>
 /// <param name="sender">The device that raised the event.</param>
 /// <param name="e">The event's associated data.</param>
 /// <remarks><i>Override because the request doesn't represent the size of the model.</i></remarks>
 protected override void SystemExclusiveReceived(object?sender, IntegraSystemExclusiveEventArgs e)
 {
     if (!IsInitialized)
     {
         if (e.SystemExclusive.Address == Address)
         {
             Initialize(e.SystemExclusive.Data);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the <see cref="Integra.SystemExclusiveReceived"/> event.
 /// </summary>
 /// <param name="sender">The <see cref="Integra"/> that raised the event.</param>
 /// <param name="e">The event's associated data.</param>
 protected override void SystemExclusiveReceived(object?sender, IntegraSystemExclusiveEventArgs e)
 {
     if (e.SystemExclusive.Address == Address)
     {
         if (e.SystemExclusive.Data.Length == Size)
         {
             if (e.SystemExclusive.Data[0] == MSB && e.SystemExclusive.Data[1] == LSB && e.SystemExclusive.Data[2] == PC)
             {
                 Initialize(e.SystemExclusive.Data);
             }
         }
     }
 }
Exemplo n.º 3
0
 protected override void SystemExclusiveReceived(object?sender, IntegraSystemExclusiveEventArgs e)
 {
     if (e.SystemExclusive.Address == Address)
     {
         // Always initialize, the the first property offset = 0 and determines the type
         Initialize(e.SystemExclusive.Data);
     }
     else if (e.SystemExclusive.Address.InRange(Address, Address + Size))
     {
         if (e.SystemExclusive.Address - Address >= 0x00000003)
         {
             ReceivedParameter(e.SystemExclusive);
         }
         else
         {
             ReceivedProperty(e.SystemExclusive);
         }
     }
 }
Exemplo n.º 4
0
 protected override void SystemExclusiveReceived(object?sender, IntegraSystemExclusiveEventArgs e)
 {
     if (e.SystemExclusive.Address == Address)
     {
         // Always initialize, when the address is received the type has changed
         Initialize(e.SystemExclusive.Data);
     }
     else if (e.SystemExclusive.Address.InRange(Address, Address + Size))
     {
         if (e.SystemExclusive.Address - Address >= 0x00000004)
         {
             ReceivedParameter(e.SystemExclusive);
         }
         else
         {
             ReceivedProperty(e.SystemExclusive);
         }
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Handles the <see cref="Integra.SystemExclusiveReceived"/> event.
 /// </summary>
 /// <param name="sender">The <see cref="Integra"/> that raised the event.</param>
 /// <param name="e">The event's associated data.</param>
 protected override void SystemExclusiveReceived(object?sender, IntegraSystemExclusiveEventArgs e)
 {
 }