|
TOBI SignalServer
0.1
|
Inheritance diagram for tobiss::BrainAmpSeries:
Collaboration diagram for tobiss::BrainAmpSeries:Public Member Functions | |
| BrainAmpSeries (ticpp::Iterator< ticpp::Element > hw) | |
| virtual SampleBlock< double > | getSyncData () |
| Abstract method to achieve synchronous data acquisition (method is blocking). | |
| virtual SampleBlock< double > | getAsyncData () |
| Abstract method to achieve asynchronous data acquisition (method is non-blocking). | |
| virtual void | run () |
| Method to start data acquisition. | |
| virtual void | stop () |
| Method to stop data acquisition. | |
Private Types | |
| enum | AmpType { None = 0, Standard = 1, MR = 2, DCMRplus = 3, ExGMR = 4 } |
| enum | Resolution { r_100nV = 0, r_500nV = 1, r_10muV = 2, r_152_6muV = 3 } |
| enum | AcquisitionType { Impedance = 0, DataAcqu = 1, TestSignal = 2 } |
Private Member Functions | |
| virtual void | setDeviceSettings (ticpp::Iterator< ticpp::Element >const &father) |
| Set configuration defined in the device settings xml section. | |
| virtual void | setChannelSettings (ticpp::Iterator< ticpp::Element >const &father) |
| Set configuration defined in the channel settings xml section. | |
| void | setHardware (ticpp::Iterator< ticpp::Element >const &hw) |
| Set the Brainamp config structure. | |
| void | setBrainAmpSamplingRate (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceLowImp (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceTriggerValue (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceLowpass250 (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceDCCoupling (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceResolution (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setDeviceCalibrationMode (ticpp::Iterator< ticpp::Element >const &elem) |
| void | setChannelLowpass250 (ticpp::Iterator< ticpp::Element >const &father) |
| void | setChannelDCDecoupling (ticpp::Iterator< ticpp::Element >const &father) |
| void | setChannelResolution (ticpp::Iterator< ticpp::Element >const &father) |
| void | setTriggerLine (ticpp::Iterator< ticpp::Element >const &elem) |
| void | checkTriggerLineChannel () |
| std::string | getErrorMsg (int error_code) |
| void | setBrainAmpChannelList () |
| bool | OpenUSBDevice () |
| std::vector< AmpType > | GetConnectedAmps () |
| void | printConnectedAmplifiers (std::vector< AmpType > amps) |
| void | checkHighestChannelNr (std::vector< AmpType > amps) |
| void | initDownsamplingFilters () |
| bool | readData () |
| void | fillSampleVector () |
| void | doDownSamplingAndFillSampleVector () |
| unsigned int | findChannelPostionInChannelList (boost::uint32_t ch) |
Private Attributes | |
| std::vector< short > | raw_buffer_ |
| std::vector< double > | downsampling_buffer_ |
| std::vector< unsigned short > | trigger_buffer_ |
| std::vector< double > | samples_ |
| BA_SETUP | brainamp_settings_ |
| BA_CALIBRATION_SETTINGS | brainamp_calibration_settings_ |
| long | acqu_type_ |
| HANDLE | dev_handle_ |
| int | driver_version_ |
| vector< IIRButterLpf< double > > | lp_filters_ |
| unsigned int | ds_factor_ |
| bool | trigger_line_enabled_ |
| downsampling factor | |
| boost::uint32_t | trigger_line_sig_type_ |
|
std::map< std::string, unsigned int > | resolution_names_ |
|
std::map< std::string, unsigned int > | calibration_signals_ |
| Mapping std::strings, representing g.USBamp block namings, and identifiers together. | |
|
std::map< AmpType, std::pair < std::string, unsigned int > > | channels_per_amp_ |
| Mapping AmpType and AmpName + nr of channels per specific amp together. | |
Static Private Attributes | |
|
static const HWThreadBuilderTemplateRegistratorWithoutIOService < BrainAmpSeries > | factory_registrator_ |
| static const std::string | hw_low_imp_ |
| xml-tag hardware: use low impedance | |
| static const std::string | hw_trigger_value_ |
| xml-tag hardware: trigger hold value | |
| static const std::string | hw_trigger_line_ |
| xml-tag hardware: trigger line enabled or not | |
| static const std::string | hw_250lp_ |
| xml-tag hardware: lowpass 250Hz | |
| static const std::string | hw_dc_coupl_ |
| xml-tag hardware: DC decoupling | |
| static const std::string | hw_resolution_ |
| xml-tag hardware: resolution | |
| static const std::string | hw_calibration_ |
| xml-tag hardware: use calibration mode | |
| static const std::string | hw_calib_on_ |
| xml-tag hardware: calibration -- on/off | |
| static const std::string | hw_calib_sig_ |
| xml-tag hardware: calibration -- signal type | |
| static const std::string | hw_calib_freq_ |
| xml-tag hardware: calibration -- frequency | |
| static const std::string | hw_value_ |
| xml-tag hardware: attribute for on and off | |
| static const float | scaling_values_ [] = {.1f, .5f, 10.f, 152.6f } |
Definition at line 62 of file brainampseries.h.