HiveMind
BSPContainer.h
Go to the documentation of this file.
1 #ifndef _BSPCONTAINER_H
2 #define _BSPCONTAINER_H
3 
4 #include "ICRC.h"
5 #include "ICommInterface.h"
6 #include "IInterlocManager.h"
7 #include "bsp/IBSP.h"
8 #include "bsp/IUserInterface.h"
9 #include <functional>
10 #include <optional>
11 
12 namespace BSPContainer {
16  IBSP& getBSP();
17 
22 
26  ICRC& getCRC();
27 
30  std::optional<std::reference_wrapper<ICommInterface>> getHostCommInterface();
31 
34  std::optional<std::reference_wrapper<ICommInterface>> getRemoteCommInterface();
35 
40 } // namespace BSPContainer
41 
42 #endif // _BSPCONTAINER_H
IInterlocManager
Definition: IInterlocManager.h:16
IBSP.h
BSPContainer::getUserInterface
IUserInterface & getUserInterface()
Returns an instance of the platform dependent UserInterface.
Definition: BSPContainer.cpp:19
ICommInterface.h
BSPContainer::getInterlocManager
IInterlocManager & getInterlocManager()
Returns an instance of the interloc manager.
Definition: BSPContainer.cpp:24
BSPContainer
Definition: BSPContainer.h:12
IBSP
Definition: IBSP.h:6
IUserInterface.h
BSPContainer::getRemoteCommInterface
std::optional< std::reference_wrapper< ICommInterface > > getRemoteCommInterface()
Return an instance of the connected remote comm interface.
Definition: BSPContainer.cpp:65
BSPContainer::getCRC
ICRC & getCRC()
Returns an instance of the HardwareCRC driver.
BSPContainer::getHostCommInterface
std::optional< std::reference_wrapper< ICommInterface > > getHostCommInterface()
Return an instance of the connected host comm interface.
Definition: BSPContainer.cpp:30
BSPContainer::getBSP
IBSP & getBSP()
Returns an instance of the platform dependent BSP.
Definition: BSPContainer.cpp:13
ICRC.h
IInterlocManager.h
IUserInterface
Manages the user interface The user interface can consist of buttons, LED, serial print ports,...
Definition: IUserInterface.h:36
ICRC
Definition: ICRC.h:6