|
TOBI Interface A
0.1
|
The core of TOBI Interface A (TiA) More...
#include <tia_server.h>
Public Member Functions | |
| TiAServer (boost::asio::io_service &io_service, bool new_tia=false) | |
| Constructor. | |
| virtual | ~TiAServer () |
| Destructor. | |
| void | initialize (std::map< std::string, std::string > &subject_info, std::map< std::string, std::string > &server_settings) |
| Initialize the server param[in] map<std::string,std::string> subject_info param[in] map<std::string,std::string> server_settings. | |
| DataPacket * | getEmptyDataPacket () |
| todo | |
| void | sendDataPacket () |
| Sends a DataPacket to connected clients. | |
| void | setMasterSamplingRate (boost::uint32_t value) |
| Set the sampling rate of the master device. | |
| void | setMasterBlocksize (boost::uint32_t value) |
| Set the blocksize of the master device. | |
| void | setAcquiredSignalTypes (const std::vector< boost::uint32_t > &sig_types) |
| Set the acquired signal types. | |
| void | setBlockSizesPerSignalType (const std::vector< boost::uint16_t > &blocksizes) |
| Set the blocksize for every signal type. | |
| void | setSamplingRatePerSignalType (const std::vector< boost::uint32_t > &fs_per_sig_type) |
| Set the sampling rate for every signal type. | |
| void | setChannelNames (const std::map< boost::uint32_t, std::vector< std::string > > &channels_per_sig_type) |
| Set the channel names for the channels of every signal type. | |
Friends | |
| class | ControlConnectionServer |
The core of TOBI Interface A (TiA)
The TiAServer represents the main entry point for using the TiA library. TiA consists out of a separation between meta information transmitted via xml and a seperated data stream devlivering raw data.
It provides an interface to set this meta data and transmit acquired data using TiA data packets.
Implement mechanisms to detect "impossible" configurations.
Define "invisible magic constants" like fs = 0 for aperiodic devices.
Implement mechanisms to ensure that aperiodics are used correctly (e.g. blocksize)
Definition at line 96 of file tia_server.h.