bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
example::ArduinoConnectorUSBBase Class Reference

#include <arduino_connector_usb_base.h>

Inheritance diagram for example::ArduinoConnectorUSBBase:
Collaboration diagram for example::ArduinoConnectorUSBBase:

Public Types

using base_type = ArduinoConnectorBase
 The base type.

Public Member Functions

 ArduinoConnectorUSBBase (const std::string &port)
std::string port_name () const noexcept
void connect () override
 Connect to the Arduino board.
virtual void close_connection () override
 Close the connection.
std::string send_cmd (const ArduinoCMDBase &cmd) override
 Send the command.
int_t port_id () const noexcept
bool is_port_open () const noexcept
Public Member Functions inherited from bitsim::boards::arduino::ArduinoConnectorBase
virtual ~ArduinoConnectorBase ()=default
 Destructor.

Protected Member Functions

virtual void open_port_ ()
 Opens the port.
virtual void configure_port_ ()
 Configure the serial port.
void set_port_id_ (int_t port_id) noexcept
Protected Member Functions inherited from bitsim::boards::arduino::ArduinoConnectorBase
 ArduinoConnectorBase ()=default
 Constructor.

Member Typedef Documentation

◆ base_type

Constructor & Destructor Documentation

◆ ArduinoConnectorUSBBase()

Constructor

Parameters
portThe serial port the board is connected to

Member Function Documentation

◆ close_connection()

◆ configure_port_()

Configure the serial port.

◆ connect()

Connect to the Arduino board.

Implements bitsim::boards::arduino::ArduinoConnectorBase.

◆ is_port_open()

Returns
Trur is the port is open

◆ open_port_()

Opens the port.

◆ port_id()

Returns
The port id

◆ port_name()

Returns
string representing the port name

◆ send_cmd()

◆ set_port_id_()


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