| Prototype |
|
|
ULONG MgslSetIdleMode( HANDLE hDevice,
ULONG IdleMode );
|
| Parameters |
|
|
hDevice
|
handle to open port |
IdleMode
|
new HDLC idle mode |
| |
HDLC_TXIDLE_FLAGS |
stream continuous flags |
| |
HDLC_TXIDLE_ALT_ZEROS_ONES |
send alternating zeros and ones |
| |
HDLC_TXIDLE_ZEROS |
send continuous zeros |
| |
HDLC_TXIDLE_ONES |
send continuous ones |
| |
HDLC_TXIDLE_ALT_MARK_SPACE |
send alternating marks and space |
| |
HDLC_TXIDLE_SPACE |
send continuous space |
| |
HDLC_TXIDLE_MARK |
send continuous marks |
| |
HDLC_TXIDLE_CUSTOM_8 |
Add this constant to an arbitrary 8 bit idle value (SyncLink GT family only) |
| |
HDLC_TXIDLE_CUSTOM_16 |
Add this constant to an arbitrary 16 bit idle value (SyncLink GT family only) |
| Return Value |
|
ERROR_SUCCESS (0)
|
Success |
ERROR_INVALID_PARAMETER
|
error in IdleMode. |
ERROR_INVALID_HANDLE
|
hDevice is invalid |
Set the HDLC idle mode which determines the state of the transmit data
pin while transmitter is enabled but not sending data.
HDLC_TXIDLE_CUSTOM_8 and HDLC_TXIDLE_CUSTOM_16 are constants that can
be added to 8 or 16 bit values to send arbitrary 8 or 16 bit idle patterns.
Example:
HDLC_TXIDLE_CUSTOM_16 + 0x69aa sends a 16 bit idle pattern of 0x69aa