Inherits from RokubiminiBusManager. It's used for managing the serial bus. More...
#include <RokubiminiSerialBusManager.hpp>
Public Member Functions | |
bool | addRokubiminiToBus (RokubiminiSerial *rokubimini, const std::shared_ptr< setup::RokubiminiSerial > &rokubiminiSerialSetup) const |
Creates a RokubiminiSerial Implementation object for the. More... | |
bool | loadSetup (std::vector< std::shared_ptr< rokubimini::Rokubimini >> &rokubiminis) override |
Checks for non-empty serial port names and calls the addRokubiminiToBus() method. More... | |
RokubiminiSerialBusManager ()=default | |
Default constructor of RokubiminiSerialBusManager. More... | |
void | setConfigMode () override |
Sets all the serial devices in config mode. More... | |
void | setRunMode () override |
Sets all the serial devices in run mode. More... | |
bool | startupCommunication () override |
Initializes the communication with the serial devices. More... | |
~RokubiminiSerialBusManager () override=default | |
Public Member Functions inherited from rokubimini::RokubiminiBusManager | |
virtual void | addRokubiminiSetupToList (const std::shared_ptr< setup::Rokubimini > &rokubiminiSetup) |
virtual bool | addRokubiminiToBus (Rokubimini *rokubimini, const std::shared_ptr< setup::Rokubimini > &rokubiminiSetup) const |
std::vector< std::shared_ptr< setup::Rokubimini > > | getRokubiminiSetups () |
virtual void | readAllBuses () |
RokubiminiBusManager () | |
virtual void | shutdownAllBuses () |
virtual void | writeToAllBuses () |
virtual | ~RokubiminiBusManager ()=default |
Public Attributes | |
std::vector< std::shared_ptr< RokubiminiSerial > > | attachedRokubiminiSerials_ |
Additional Inherited Members | |
Protected Attributes inherited from rokubimini::RokubiminiBusManager | |
std::vector< std::shared_ptr< setup::Rokubimini > > | attachedRokubiminiSetups_ |
Inherits from RokubiminiBusManager. It's used for managing the serial bus.
Although there isn't such a thing called "serial bus", it's used for compliance with the inheritance scheme. The bus-specifics don't exist here and the only things implemented are the way to have a list of RokubiminiSerial Setups and the way for creating RokubiminiSerialImpl objects.
Definition at line 30 of file RokubiminiSerialBusManager.hpp.
|
default |
Default constructor of RokubiminiSerialBusManager.
|
overridedefault |
bool rokubimini::serial::RokubiminiSerialBusManager::addRokubiminiToBus | ( | RokubiminiSerial * | rokubimini, |
const std::shared_ptr< setup::RokubiminiSerial > & | rokubiminiSerialSetup | ||
) | const |
Creates a RokubiminiSerial Implementation object for the.
rokubimini | given. |
rokubimini | The Rokubimini Serial instance for which an implementation will be created. |
rokubiminiSerialSetup | The Rokubimini Serial Setup instance from which the serial-specifics (port, baud rate) will be drawn. |
Definition at line 42 of file RokubiminiSerialBusManager.cpp.
|
overridevirtual |
Checks for non-empty serial port names and calls the addRokubiminiToBus() method.
rokubiminis | The Rokubimini instances. Only the Serial ones will be chosen for creating RokubiminiSerialImpl objects. |
Implements rokubimini::RokubiminiBusManager.
Definition at line 8 of file RokubiminiSerialBusManager.cpp.
|
overridevirtual |
Sets all the serial devices in config mode.
Reimplemented from rokubimini::RokubiminiBusManager.
Definition at line 65 of file RokubiminiSerialBusManager.cpp.
|
overridevirtual |
Sets all the serial devices in run mode.
Reimplemented from rokubimini::RokubiminiBusManager.
Definition at line 75 of file RokubiminiSerialBusManager.cpp.
|
overridevirtual |
Initializes the communication with the serial devices.
Reimplemented from rokubimini::RokubiminiBusManager.
Definition at line 52 of file RokubiminiSerialBusManager.cpp.
std::vector<std::shared_ptr<RokubiminiSerial> > rokubimini::serial::RokubiminiSerialBusManager::attachedRokubiminiSerials_ |
Definition at line 109 of file RokubiminiSerialBusManager.hpp.