![]() |
EduArt Sensor Ring Library 4.0.0
|
One communication interface (e.g. CAN) owning multiple SensorBoards and forwarding COM messages. More...
#include <SensorBus.hpp>
Public Member Functions | |
| SensorBus (com::ComInterfaceID interface, std::vector< std::unique_ptr< board::SensorBoard > > board_vec) | |
| Construct the bus with a communication interface and owned sensor boards. | |
| unsigned int | getSensorCount () const |
| Total number of sensor boards on this bus. | |
| com::ComInterface * | getInterface () const |
| Communication interface used by this bus. | |
| std::vector< board::SensorBoard * > | getSensorBoards () const |
| Non-owning pointers to all sensor boards on this bus. | |
Static Public Member Functions | |
| static std::vector< board::EnumerationInformation > | queryConnectedDevices (com::ComInterfaceID interface, unsigned int timeout_ms=250) |
| Enumerate boards on an interface. | |
One communication interface (e.g. CAN) owning multiple SensorBoards and forwarding COM messages.
| eduart::sensorring::SensorBus::SensorBus | ( | com::ComInterfaceID | interface, |
| std::vector< std::unique_ptr< board::SensorBoard > > | board_vec ) |
Construct the bus with a communication interface and owned sensor boards.
| [in] | interface | Communication interface ID for this bus. |
| [in] | board_vec | Owned sensor boards. |
| com::ComInterface * eduart::sensorring::SensorBus::getInterface | ( | ) | const |
Communication interface used by this bus.
| std::vector< board::SensorBoard * > eduart::sensorring::SensorBus::getSensorBoards | ( | ) | const |
Non-owning pointers to all sensor boards on this bus.
| unsigned int eduart::sensorring::SensorBus::getSensorCount | ( | ) | const |
Total number of sensor boards on this bus.
|
static |
Enumerate boards on an interface.
| [in] | interface | Communication interface ID to enumerate. |
| [in] | timeout_ms | Time to wait for responses before returning in milliseconds. |