|
bitsim
Model, simulate, estimate and control robots in C++
|
#include <arduino_connector_usb_base.h>


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. | |
The base type.
| bitsim::boards::arduino::ArduinoConnectorUSBBase::ArduinoConnectorUSBBase | ( | const std::string & | port | ) |
Constructor
| port | The serial port the board is connected to |
|
overridevirtual |
Close the connection.
Implements bitsim::boards::arduino::ArduinoConnectorBase.
|
protectedvirtual |
Configure the serial port.
|
overridevirtual |
Connect to the Arduino board.
Implements bitsim::boards::arduino::ArduinoConnectorBase.
|
inlinenoexcept |
|
protectedvirtual |
Opens the port.
|
inlinenoexcept |
|
inlinenoexcept |
|
overridevirtual |
Send the command.
Implements bitsim::boards::arduino::ArduinoConnectorBase.
|
inlineprotectednoexcept |