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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user