Inherits NetOceanDirect::ManagedObject< SerialPortAPI >.
|
SerialPortAPI * | m_Instance |
|
◆ getBaudRate()
int SerialPort::getBaudRate |
( |
long |
deviceID, |
|
|
int % |
errorCode |
|
) |
| |
Read the serial port baud rate..
- See also
- setBaudRate()
- Parameters
-
- Returns
- the baud rate.
◆ getSerialCommThresholdMode()
unsigned char SerialPort::getSerialCommThresholdMode |
( |
long |
deviceID, |
|
|
int % |
errorCode |
|
) |
| |
|
virtual |
Get the threshold mode of serial communication. The valid supported values are 0x10(RS-232) and 0x20(UART).
- See also
- setSerialCommThresholdMode()
- Parameters
-
- Returns
- The threshold mode either 0x10 or 0x20.
◆ saveBaudRateSettings()
void SerialPort::saveBaudRateSettings |
( |
long |
deviceID, |
|
|
int % |
errorCode |
|
) |
| |
Save baud settings on flash.
- Parameters
-
◆ setBaudRate()
void SerialPort::setBaudRate |
( |
long |
deviceID, |
|
|
int % |
errorCode, |
|
|
int |
baudRate |
|
) |
| |
Set the serial port baud rate.
- See also
- getBaudRate()
- Parameters
-
[in] | deviceID | the device ID for the device to be configured (from OceanDirect::findDevices()) |
[out] | errorCode | set to 0 if successful, an OceanDirect error code (nonzero) otherwise |
[in] | baudRate | the serial port baud rate |
◆ setSerialCommThresholdMode()
void SerialPort::setSerialCommThresholdMode |
( |
long |
deviceID, |
|
|
int % |
errorCode, |
|
|
unsigned char |
thresholdMode |
|
) |
| |
|
virtual |
Set the threshold mode of serial communication. The valid supported values are 0x10(RS-232) and 0x20(UART).
- See also
- getSerialCommThresholdMode()
- Parameters
-
[in] | deviceID | the device ID for the device to be configured (from OceanDirect::findDevices()) |
[out] | errorCode | set to 0 if successful, an OceanDirect error code (nonzero) otherwise |
| thresholdMode | The threshold mode either 0x10 or 0x20. |
The documentation for this class was generated from the following files: