Anritsu Spectrum Master MS2711D Programming Manual page 108

Fast. accurate, repeatable, portable spectrum analysis
Hide thumbs Also See for Spectrum Master MS2711D:
Table of Contents

Advertisement

case '3':
CommSettings.BaudRate = CBR_38400;
break;
case '4':
CommSettings.BaudRate = CBR_56000;
break;
case '5':
CommSettings.BaudRate = CBR_115200; // rate - 115200
break;
default:
CommSettings.BaudRate = CBR_9600;
break;
}
// disable null stripping
CommSettings.fNull = FALSE;
// RTS flow control
CommSettings.fRtsControl = RTS_CONTROL_ENABLE;
// XON/XOFF in flow control
CommSettings.fInX = FALSE;
// XON/XOFF out flow control
CommSettings.fOutX = FALSE;
// DTR flow control type
CommSettings.fDtrControl
// number of bits/byte, 4-8
CommSettings.ByteSize = 8;
// 0-4=no,odd,even,mark,space
CommSettings.Parity = NOPARITY;
// 0,1,2 = 1, 1.5, 2
CommSettings.StopBits = ONESTOPBIT;
/* Setting the COM State with the changed parameters
Syntax -
BOOL SetCommState(
HANDLE hFile,
LPDCB lpDCB
);
*/
PortReady = SetCommState (ComHandle, &CommSettings);
/* Setting the parameters for the timeouts.
Spectrum Master PM
= DTR_CONTROL_ENABLE;
// handle to communications device
// pointer to device-control block structure
// rate - 38400
// rate - 56000
//Default - 9600
103

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Spectrum Master MS2711D and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents