#include <SerialPort.h>
Inherits NetOceanDirect::ManagedObject< SerialPortAPI >.
◆ SerialPort() [1/2]
SerialPort::SerialPort |
( |
| ) |
|
|
protected |
◆ SerialPort() [2/2]
SerialPort::SerialPort |
( |
SerialPortAPI * | instance | ) |
|
◆ ~SerialPort()
virtual NetOceanDirect::SerialPort::~SerialPort |
( |
| ) |
|
|
inlinevirtual |
◆ getBaudRate()
int SerialPort::getBaudRate |
( |
long | deviceID, |
|
|
int % | errorCode ) |
Read the serial port baud rate..
- See also
- setBaudRate()
- Parameters
-
- Returns
- the baud rate.
◆ getInstance()
◆ 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. |
◆ serialPort
The documentation for this class was generated from the following files: