real-time configuration class for trigger2lsl plugin  
 More...
real-time configuration class for trigger2lsl plugin 
 
◆ trigger2lsl_rt_t()
      
        
          | trigger2lsl_rt_t::trigger2lsl_rt_t  | 
          ( | 
          const std::string &  | 
          stream_name_,  | 
        
        
           | 
           | 
          const std::string &  | 
          rising_edge_,  | 
        
        
           | 
           | 
          const std::string &  | 
          falling_edge_,  | 
        
        
           | 
           | 
          mha_real_t  | 
          threshold_,  | 
        
        
           | 
           | 
          int  | 
          channel_,  | 
        
        
           | 
           | 
          mha_real_t  | 
          sampling_rate_,  | 
        
        
           | 
           | 
          bool  | 
          use_edge_position_,  | 
        
        
           | 
           | 
          int  | 
          min_debounce_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
C'tor of rt configuration. 
- Parameters
 - 
  
    | stream_name_ | Name of the output stream  | 
    | rising_edge_ | String to be sent on detection of a rising edge  | 
    | falling_edge_ | String to be sent on detection of a falling edge  | 
    | threshold_ | Threshold for state transition  | 
    | channel_ | Channel index where to look for threshold crossings  | 
    | sampling_rate_ | Sampling rate of the input signal. Needed for timestamp offeset correction  | 
    | use_edge_position_ | Flag wether to use the position of the edge within the signal block to correct the timestamp of the output marker  | 
    | min_debounce_ | Minimum number of consecutive samples that need to cross the threshold to initiate a state transition  | 
  
   
 
 
◆ process()
      
        
          | void trigger2lsl_rt_t::process  | 
          ( | 
          mha_wave_t *  | 
          wave | ) | 
           | 
        
      
 
 
◆ stream
  
  
      
        
          | lsl::stream_outlet trigger2lsl::trigger2lsl_rt_t::stream | 
         
       
   | 
  
private   | 
  
 
 
◆ rising_edge
  
  
      
        
          | const std::string trigger2lsl::trigger2lsl_rt_t::rising_edge | 
         
       
   | 
  
private   | 
  
 
String to be sent when a rising edge is detected. 
 
 
◆ falling_edge
  
  
      
        
          | const std::string trigger2lsl::trigger2lsl_rt_t::falling_edge | 
         
       
   | 
  
private   | 
  
 
String to be sent when a falling edge is detected. 
 
 
◆ threshold
  
  
      
        
          | const mha_real_t trigger2lsl::trigger2lsl_rt_t::threshold | 
         
       
   | 
  
private   | 
  
 
Threshold for state transition. 
 
 
◆ channel
  
  
      
        
          | const int trigger2lsl::trigger2lsl_rt_t::channel | 
         
       
   | 
  
private   | 
  
 
Channel number where to look for threshold crossings. 
 
 
◆ state
  
  
      
        
          | bool trigger2lsl::trigger2lsl_rt_t::state =false | 
         
       
   | 
  
private   | 
  
 
Current state. 
false means HIGH and true means LOW. LOW state means we are below the threshold, looking for rising edges, HIGH state means we are above, looking for falling edges. 
 
 
◆ sampling_rate
  
  
      
        
          | const mha_real_t trigger2lsl::trigger2lsl_rt_t::sampling_rate | 
         
       
   | 
  
private   | 
  
 
Sampling rate of the input signal. 
Needed for timestamp offeset correction 
 
 
◆ use_edge_position
  
  
      
        
          | const bool trigger2lsl::trigger2lsl_rt_t::use_edge_position =true | 
         
       
   | 
  
private   | 
  
 
Flag wether to use the position of the edge within the signal block to correct the timestamp of the output marker. 
 
 
◆ min_debounce
  
  
      
        
          | const int trigger2lsl::trigger2lsl_rt_t::min_debounce | 
         
       
   | 
  
private   | 
  
 
Minimum number of consecutive samples that need to cross the threshold to initiate a state transition. 
 
 
◆ debounce_counter
  
  
      
        
          | int trigger2lsl::trigger2lsl_rt_t::debounce_counter =0 | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: