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