16#include "sensorring/platform/SensorringExport.hpp"
29using namespace std::chrono_literals;
77 com::ComInterface* _interface;
79 std::vector<std::unique_ptr<device::SensorBoard> > _board_vec;
Interface type definition.
Abstraction of a single sensor board.
RAII wrapper pairing a SubscriberToken with its cancel function.
static std::vector< device::EnumerationInformation > queryConnectedDevices(com::ComInterfaceID interface, std::chrono::milliseconds timeout=250ms)
Enumerate boards on an interface.
SensorBus(com::ComInterfaceID interface, std::vector< std::unique_ptr< device::SensorBoard > > board_vec)
Construct the bus with a communication interface and owned sensor boards.
com::ComInterface * getInterface() const
Communication interface used by this bus.
std::vector< device::SensorBoard * > getSensorBoards() const
Non-owning pointers to all sensor boards on this bus.
unsigned int getSensorCount() const
Total number of sensor boards on this bus.
void setBitRateSwitching(bool brs_enable)
Enable or disable bit rate switching on the bus interface.
Move-only RAII wrapper that pairs a SubscriberToken with an unsubscribe callable. Destroying a Subscr...
Definition Subscription.hpp:30
Definition ComInterfaceID.hpp:32