Mercurial > hg > fxanalyse
view data-provider.h @ 144:be87c8e78266
Code cleanup
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Wed, 22 Jan 2014 14:45:24 +0100 |
parents | 8b90fbba59ef |
children | 8a94f1913b4e |
line wrap: on
line source
#ifndef __DATA_PROVIDER_H__ #define __DATA_PROVIDER_H__ #include <future.h> /* data acquisition flag */ extern int acquiring; /* data queue */ extern CmtTSQHandle dataQueue; /* callback receiving messages in the main thread */ void CVICALLBACK MessageCB (void *callbackData); /* number of data channels */ #define NCHAN 4 /* data acquisition event */ struct event { struct timeval time; double data[NCHAN]; }; /* send messages to the main thread */ void SendMessage(int threadId, const char *frmt, ...); /* data providers */ int CVICALLBACK FakeDataProvider (void *functionData); int CVICALLBACK FileDataProvider (void *functionData); int CVICALLBACK KKDataProvider (void *functionData); #endif