MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / show_DCB

Function show_DCB

lib/termios.c:2190–2365  ·  view source on GitHub ↗

---------------------------------------------------------- show_DCB() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/

Source from the content-addressed store, hash-verified

2188 comments:
2189----------------------------------------------------------*/
2190static void show_DCB(DCB myDCB)
2191{
2192
2193#ifdef DEBUG_HOSED
2194 char message[80];
2195
2196 SNPRINTF(message, sizeof(message), "DCBlength: %ld\n", myDCB.DCBlength);
2197 report(message);
2198 SNPRINTF(message, sizeof(message), "BaudRate: %ld\n", myDCB.BaudRate);
2199 report(message);
2200
2201 if (myDCB.fBinary)
2202 {
2203 report("fBinary\n");
2204 }
2205
2206 if (myDCB.fParity)
2207 {
2208 report("fParity: ");
2209
2210 if (myDCB.fErrorChar)
2211 {
2212 SNPRINTF(message, sizeof(message), "fErrorChar: %#x\n", myDCB.ErrorChar);
2213 report(message);
2214 }
2215 else
2216 {
2217 report("fErrorChar == false\n");
2218 }
2219 }
2220
2221 if (myDCB.fOutxCtsFlow)
2222 {
2223 report("fOutxCtsFlow\n");
2224 }
2225
2226 if (myDCB.fOutxDsrFlow)
2227 {
2228 report("fOutxDsrFlow\n");
2229 }
2230
2231 if (myDCB.fDtrControl & DTR_CONTROL_HANDSHAKE)
2232 {
2233 report("DTR_CONTROL_HANDSHAKE\n");
2234 }
2235
2236 if (myDCB.fDtrControl & DTR_CONTROL_ENABLE)
2237 {
2238 report("DTR_CONTROL_ENABLE\n");
2239 }
2240
2241 if (myDCB.fDtrControl & DTR_CONTROL_DISABLE)
2242 {
2243 report("DTR_CONTROL_DISABLE\n");
2244 }
2245
2246 if (myDCB.fDsrSensitivity)
2247 {

Callers 1

tcgetattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected