Make C++ compiler friendly and handle all eight counters in one process.

r1171 | dcl | 2006-10-24 15:44:25 +1000 (Tue, 24 Oct 2006) | 2 lines
This commit is contained in:
Douglas Clowes
2006-10-24 15:44:25 +10:00
parent 74ad3d225f
commit 2ab57e1eb2
13 changed files with 294 additions and 191 deletions

View File

@@ -6,13 +6,15 @@
#include <stdio.h>
#include <string.h>
typedef enum { COUNT_UP = 0, COUNT_DOWN } DIRECTION;
/**
* Counter Control Parameters
*/
typedef struct parameter_t
{
/** direction of counting for the logical counter */
enum { COUNT_UP = 0, COUNT_DOWN } direction;
DIRECTION direction;
/** counter read period in milliseconds */
int poll_period;
/** sample period in number of reads per sample */