APM:Libraries
Public Member Functions | List of all members
SerialDevice Class Referenceabstract

#include <SerialDevice.h>

Inheritance diagram for SerialDevice:
[legend]

Public Member Functions

virtual ~SerialDevice ()
 
virtual bool open ()=0
 
virtual bool close ()=0
 
virtual ssize_t write (const uint8_t *buf, uint16_t n)=0
 
virtual ssize_t read (uint8_t *buf, uint16_t n)=0
 
virtual void set_blocking (bool blocking)=0
 
virtual void set_speed (uint32_t speed)=0
 
virtual AP_HAL::UARTDriver::flow_control get_flow_control (void)
 
virtual void set_flow_control (AP_HAL::UARTDriver::flow_control flow_control_setting)
 

Detailed Description

Definition at line 8 of file SerialDevice.h.

Constructor & Destructor Documentation

◆ ~SerialDevice()

virtual SerialDevice::~SerialDevice ( )
inlinevirtual

Definition at line 10 of file SerialDevice.h.

Here is the call graph for this function:

Member Function Documentation

◆ close()

virtual bool SerialDevice::close ( )
pure virtual

Implemented in ConsoleDevice, TCPServerDevice, UARTDevice, and UDPDevice.

Referenced by Linux::UARTDriver::_parseDevicePath(), and ~SerialDevice().

Here is the caller graph for this function:

◆ get_flow_control()

virtual AP_HAL::UARTDriver::flow_control SerialDevice::get_flow_control ( void  )
inlinevirtual

Reimplemented in UARTDevice.

Definition at line 18 of file SerialDevice.h.

Referenced by Linux::UARTDriver::get_flow_control().

Here is the caller graph for this function:

◆ open()

virtual bool SerialDevice::open ( )
pure virtual

Implemented in ConsoleDevice, TCPServerDevice, UARTDevice, and UDPDevice.

Referenced by Linux::UARTDriver::_write_fd(), Linux::UARTDriver::set_device_path(), and ~SerialDevice().

Here is the caller graph for this function:

◆ read()

virtual ssize_t SerialDevice::read ( uint8_t *  buf,
uint16_t  n 
)
pure virtual

Implemented in TCPServerDevice, UDPDevice, ConsoleDevice, and UARTDevice.

Referenced by Linux::UARTDriver::_read_fd(), and ~SerialDevice().

Here is the caller graph for this function:

◆ set_blocking()

virtual void SerialDevice::set_blocking ( bool  blocking)
pure virtual

Implemented in ConsoleDevice, UARTDevice, TCPServerDevice, and UDPDevice.

Referenced by Linux::UARTDriver::set_device_path(), and ~SerialDevice().

Here is the caller graph for this function:

◆ set_flow_control()

virtual void SerialDevice::set_flow_control ( AP_HAL::UARTDriver::flow_control  flow_control_setting)
inlinevirtual

Reimplemented in UARTDevice.

Definition at line 19 of file SerialDevice.h.

Referenced by Linux::UARTDriver::set_flow_control().

Here is the caller graph for this function:

◆ set_speed()

virtual void SerialDevice::set_speed ( uint32_t  speed)
pure virtual

Implemented in ConsoleDevice, UARTDevice, TCPServerDevice, and UDPDevice.

Referenced by Linux::UARTDriver::set_device_path(), and ~SerialDevice().

Here is the caller graph for this function:

◆ write()

virtual ssize_t SerialDevice::write ( const uint8_t *  buf,
uint16_t  n 
)
pure virtual

Implemented in TCPServerDevice, UDPDevice, ConsoleDevice, and UARTDevice.

Referenced by Linux::UARTDriver::_write_fd(), and ~SerialDevice().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: