X2 Standard  Version 1.24
Public Member Functions | List of all members
SerialPortParams2Interface Class Referenceabstract

The SerialPortParams2Interface is a cross-platform interface to common serial port parameters. More...

#include <serialportparams2interface.h>

Inheritance diagram for SerialPortParams2Interface:
X2Rotator

Public Member Functions

virtual void portName (BasicStringInterface &str) const =0
 
virtual void setPortName (const char *szPort)=0
 
virtual unsigned int baudRate () const =0
 
virtual void setBaudRate (unsigned int)=0
 
virtual bool isBaudRateFixed () const =0
 
virtual SerXInterface::Parity parity () const =0
 
virtual void setParity (const SerXInterface::Parity &parity)=0
 
virtual bool isParityFixed () const =0
 
virtual int dataBits () const
 
virtual void setDataBits (const int &nValue)
 
virtual bool isDataBitsFixed ()
 
virtual int stopBits () const
 
virtual void setStopBits (const int &nValue)
 
virtual bool isStopBitsFixed ()
 
virtual int flowControl () const
 
virtual void setFlowControl (const int &nValue)
 
virtual bool isFlowControlFixed ()
 

Detailed Description

The SerialPortParams2Interface is a cross-platform interface to common serial port parameters.

For serial devices, implementing this interface causes TheSkyX to display a general serial port settings user interface for setting serial port parameters. This does not encompass all serial port parameters for all operating systems, but does cover the most common serial port settings applied to astronomical hardware.

New to TheSkyX Version 10.1.10 (build 4443 and later) a "More Settings" button appears on TheSkyX's general "Serial Port Settings" dialog if the underlying X2 driver also implements the ModalSettingsDialogInterface. This allows X2 drivers to leverage TheSkyX's general "Serial Port Settings" dialog while also having a custom user interface that is displayed when the "More Settings" button is pressed.
In prior TheSkyX builds, the ModalSettingsDialogInterface and SerialPortParams2Interface where mutually exclusive but that is no longer the case and X2 implementor don't need to duplicate the serial port settings in their custom user interface.

Member Function Documentation

◆ baudRate()

virtual unsigned int SerialPortParams2Interface::baudRate ( ) const
pure virtual

Return the buad rate.

Implemented in X2Rotator.

◆ dataBits()

virtual int SerialPortParams2Interface::dataBits ( ) const
inlinevirtual

Return the number of data bits.

◆ flowControl()

virtual int SerialPortParams2Interface::flowControl ( ) const
inlinevirtual

Return the flow control. Zero means no flow control.

◆ isBaudRateFixed()

virtual bool SerialPortParams2Interface::isBaudRateFixed ( ) const
pure virtual

Return if the parameter is fixed or not. The general user interface will hide this parameter if it is fixed.

Implemented in X2Rotator.

◆ isDataBitsFixed()

virtual bool SerialPortParams2Interface::isDataBitsFixed ( )
inlinevirtual

Return if the parameter is fixed or not. The general user interface will hide this parameter if it is fixed.

◆ isFlowControlFixed()

virtual bool SerialPortParams2Interface::isFlowControlFixed ( )
inlinevirtual

Return if the parameter is fixed or not. The general user interface will hide this parameter if it is fixed.

◆ isParityFixed()

virtual bool SerialPortParams2Interface::isParityFixed ( ) const
pure virtual

Return if the parameter is fixed or not. The general user interface will hide this parameter if it is fixed.

Implemented in X2Rotator.

◆ isStopBitsFixed()

virtual bool SerialPortParams2Interface::isStopBitsFixed ( )
inlinevirtual

Return if the parameter is fixed or not. The general user interface will hide this parameter if it is fixed.

◆ parity()

virtual SerXInterface::Parity SerialPortParams2Interface::parity ( ) const
pure virtual

Return the parity.

Implemented in X2Rotator.

◆ portName()

virtual void SerialPortParams2Interface::portName ( BasicStringInterface str) const
pure virtual

Return serial port name as a string.

Implemented in X2Rotator.

◆ setBaudRate()

virtual void SerialPortParams2Interface::setBaudRate ( unsigned int  )
pure virtual

Set the baud rate.

Implemented in X2Rotator.

◆ setDataBits()

virtual void SerialPortParams2Interface::setDataBits ( const int &  nValue)
inlinevirtual

Set the number of data bits.

◆ setFlowControl()

virtual void SerialPortParams2Interface::setFlowControl ( const int &  nValue)
inlinevirtual

Set the flow control.

◆ setParity()

virtual void SerialPortParams2Interface::setParity ( const SerXInterface::Parity parity)
pure virtual

Set the parity.

Implemented in X2Rotator.

◆ setPortName()

virtual void SerialPortParams2Interface::setPortName ( const char *  szPort)
pure virtual

Set the serial port name as a string.

Implemented in X2Rotator.

◆ setStopBits()

virtual void SerialPortParams2Interface::setStopBits ( const int &  nValue)
inlinevirtual

Set the number of stop bits.

◆ stopBits()

virtual int SerialPortParams2Interface::stopBits ( ) const
inlinevirtual

Return the number of stop bits.


The documentation for this class was generated from the following file:
X2 Examples
(C) Software Bisque, Inc. All rights reserved.