SerialErrorEventArgs.cs 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* -*- Mode: Csharp; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2. #if NET_2_0
  3. namespace System.IO.Ports
  4. {
  5. public enum SerialErrors
  6. {
  7. Frame, /* The hardware detected a framing error */
  8. Overrun, /* A character-buffer overrun has occurred. The next character will be lost. */
  9. RxOver, /* An input buffer overflow has occurred. There is
  10. * either no room in the input buffer, or a character
  11. * was received after the end-of-file (EOF)
  12. * character. */
  13. RxParity, /* The hardware detected a parity error. */
  14. TxFull /* The application tried to transmit a character, but
  15. * the output buffer was full. */
  16. }
  17. public class SerialErrorEventArgs : EventArgs
  18. {
  19. internal SerialErrorEventArgs (SerialErrors event_type)
  20. {
  21. this.event_type = event_type;
  22. }
  23. // properties
  24. public SerialErrors EventType
  25. {
  26. get {
  27. return event_type;
  28. }
  29. }
  30. SerialErrors event_type;
  31. }
  32. }
  33. #endif