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