protected virtual void OnTransmit(UartDataEventArgs args)
 {
     args.ParityBit = Uart.ComputeParityBit(args.Data, controlRegister);
     if (DataTransmitting != null)
     {
         DataTransmitting(this, args);
     }
 }
Esempio n. 2
0
 protected virtual void OnReceived(UartDataEventArgs args)
 {
     args.ParityBit = Uart.ComputeParityBit(args.Data, controlRegister);
     if (DataReceived != null)
     {
         DataReceived(this, args);
     }
 }