Set the Event Character possible?

6 views
Skip to first unread message

Andreas Kuhtz

unread,
Aug 19, 2016, 9:49:43 AM8/19/16
to SerialPundit
Hello Rishi,

Is it possible to set the event character in SerialComManager?

Under Windows it's the EvtChar in the DCB struct.

typedef struct _DCB {
  DWORD DCBlength;
  DWORD BaudRate;
  DWORD fBinary  :1;
  DWORD fParity  :1;
  DWORD fOutxCtsFlow  :1;
  DWORD fOutxDsrFlow  :1;
  DWORD fDtrControl  :2;
  DWORD fDsrSensitivity  :1;
  DWORD fTXContinueOnXoff  :1;
  DWORD fOutX  :1;
  DWORD fInX  :1;
  DWORD fErrorChar  :1;
  DWORD fNull  :1;
  DWORD fRtsControl  :2;
  DWORD fAbortOnError  :1;
  DWORD fDummy2  :17;
  WORD  wReserved;
  WORD  XonLim;
  WORD  XoffLim;
  BYTE  ByteSize;
  BYTE  Parity;
  BYTE  StopBits;
  char  XonChar;
  char  XoffChar;
  char  ErrorChar;
  char  EofChar;
  char  EvtChar;
  WORD  wReserved1;
} DCB, *LPDCB;


Regards,
Andreas

rishi gupta

unread,
Aug 19, 2016, 12:42:56 PM8/19/16
to Andreas Kuhtz, SerialPundit
HI Andreas,

what is the use case.

-Rishi

--
You received this message because you are subscribed to the Google Groups "SerialPundit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to SerialPundit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/SerialPundit/db1e0afd-2282-47d5-9460-f538f11406de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andreas Kuhtz

unread,
Aug 19, 2016, 1:04:20 PM8/19/16
to rishi gupta, SerialPundit

Hi Rishi,

I've an FTDI chip to support and I want to set the event character. In the meantime I've seen that there is a special implementation for FTDI chip where I can set this parameter. I'll try that first.

Regards,
Andreas


To unsubscribe from this group and stop receiving emails from it, send an email to SerialPundit...@googlegroups.com.

rishi gupta

unread,
Aug 19, 2016, 1:07:44 PM8/19/16
to Andreas Kuhtz, SerialPundit
Hi Andreas,

- Yes, FTDI has that functionality. 

- Please tell me the use case. I have refrained from OS specific things to make the code work on every platform.
There are other ways in which similar functionality can be achieved.

- What exactly is your use case.

-Rishi

To unsubscribe from this group and stop receiving emails from it, send an email to SerialPundit+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages