Class ArduinoConnectorUSBBase

Inheritance Relationships

Base Type

Class Documentation

class ArduinoConnectorUSBBase : public bitrl::boards::arduino::ArduinoConnectorBase

Public Types

typedef ArduinoConnectorBase base_type

The base type.

Public Functions

ArduinoConnectorUSBBase(const std::string &port)

Constructor

Parameters:
  • port

  • cidx

  • name

inline std::string port_name() const noexcept
Returns:

string representing the port name

virtual void connect() override

Connect to the Arduino board.

virtual void close_connection() override

Close the connection.

virtual std::string send_cmd(const ArduinoCMDBase &cmd) override

Send the command.

inline int_t port_id() const noexcept
Returns:

The port id

inline bool is_port_open() const noexcept
Returns:

Trur is the port is open

Protected Functions

virtual void open_port_()

Opens the port.

virtual void configure_port_()

Configure the serial port.

inline void set_port_id_(int_t port_id) noexcept