comparison host/tools/Utils/common/eCosSerial.h @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents 6736c52df507
children
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
67 67
68 bool SetBaud(unsigned int nBaud,bool bApplySettingsNow=true); 68 bool SetBaud(unsigned int nBaud,bool bApplySettingsNow=true);
69 bool SetParity(bool bParityOn,bool bApplySettingsNow=true); 69 bool SetParity(bool bParityOn,bool bApplySettingsNow=true);
70 bool SetDataBits(int n,bool bApplySettingsNow=true); 70 bool SetDataBits(int n,bool bApplySettingsNow=true);
71 bool SetStopBits(StopBitsType n,bool bApplySettingsNow=true); 71 bool SetStopBits(StopBitsType n,bool bApplySettingsNow=true);
72 bool SetXONXOFFFlowControl(bool b,bool bApplySettingsNow=true);
73 bool SetRTSCTSFlowControl(bool b,bool bApplySettingsNow=true);
74 bool SetDSRDTRFlowControl(bool b,bool bApplySettingsNow=true);
72 bool SetReadTimeOuts(int nTotal,int nBetweenChars,bool bApplySettingsNow=true); // Times are in mSec 75 bool SetReadTimeOuts(int nTotal,int nBetweenChars,bool bApplySettingsNow=true); // Times are in mSec
73 bool SetWriteTimeOuts(int nTotal,int nBetweenChars,bool bApplySettingsNow=true); // Times are in mSec 76 bool SetWriteTimeOuts(int nTotal,int nBetweenChars,bool bApplySettingsNow=true); // Times are in mSec
74 77
75 bool ApplySettings(); 78 bool ApplySettings();
76 79
77 // Query the settings: 80 // Query the settings:
78 int GetParity() const { return m_bParity; } 81 int GetParity() const { return m_bParity; }
79 int GetDataBits() const { return m_nDataBits; } 82 int GetDataBits() const { return m_nDataBits; }
80 StopBitsType GetStopBits() const { return m_nStopBits; } 83 StopBitsType GetStopBits() const { return m_nStopBits; }
84 bool GetXONXOFFFlowControl() const { return m_bXONXOFFFlowControl; }
85 bool GetRTSCTSFlowControl() const { return m_bRTSCTSFlowControl; }
86 bool GetDSRDTRFlowControl() const { return m_bDSRDTRFlowControl; }
81 unsigned int GetBaud() const { return m_nBaud; } 87 unsigned int GetBaud() const { return m_nBaud; }
82 bool GetReadTimeOuts(int &nTotal,int &nBetweenChars) const {nTotal=m_nTotalReadTimeout; nBetweenChars=m_nInterCharReadTimeout; return true; }// mSec 88 bool GetReadTimeOuts(int &nTotal,int &nBetweenChars) const {nTotal=m_nTotalReadTimeout; nBetweenChars=m_nInterCharReadTimeout; return true; }// mSec
83 bool GetWriteTimeOuts(int &nTotal,int &nBetweenChars) const {nTotal=m_nTotalWriteTimeout; nBetweenChars=m_nInterCharWriteTimeout; return true; }// mSec 89 bool GetWriteTimeOuts(int &nTotal,int &nBetweenChars) const {nTotal=m_nTotalWriteTimeout; nBetweenChars=m_nInterCharWriteTimeout; return true; }// mSec
84 bool GetBlockingReads() const { return m_bBlockingReads; } 90 bool GetBlockingReads() const { return m_bBlockingReads; }
85 bool Close(); 91 bool Close();
121 127
122 // Line characteristics: 128 // Line characteristics:
123 void *m_pHandle; 129 void *m_pHandle;
124 int m_nDataBits; 130 int m_nDataBits;
125 StopBitsType m_nStopBits; 131 StopBitsType m_nStopBits;
132 bool m_bXONXOFFFlowControl;
133 bool m_bRTSCTSFlowControl;
134 bool m_bDSRDTRFlowControl;
126 bool m_bParity; 135 bool m_bParity;
127 unsigned int m_nBaud; 136 unsigned int m_nBaud;
128 int m_nTotalReadTimeout,m_nTotalWriteTimeout; 137 int m_nTotalReadTimeout,m_nTotalWriteTimeout;
129 int m_nInterCharReadTimeout,m_nInterCharWriteTimeout; 138 int m_nInterCharReadTimeout,m_nInterCharWriteTimeout;
130 bool m_bBlockingReads; 139 bool m_bBlockingReads;