Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (29 sloc) 1.08 KB
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact:
MODULE: OB_DEBOUNCE.H: declarations for the Debounce-Object
Author: Chris Veigl
This Object filters sudden changes to INVALID_VALUE. the number of considered
samples can be selected.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; See the
GNU General Public License for more details.
#include "brainBay.h"
class DEBOUNCEOBJ : public BASE_CL
float out,old_value;
int dtime;
int count_time;
int active;
void make_dialog(void);
void load(HANDLE hFile);
void incoming_data(int port, float value);
void save(HANDLE hFile);
void work(void);
friend LRESULT CALLBACK DebounceDlgHandler(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);