Progressive refinement

r1199 | dcl | 2006-10-26 18:38:34 +1000 (Thu, 26 Oct 2006) | 2 lines
This commit is contained in:
Douglas Clowes
2006-10-26 18:38:34 +10:00
parent 7dfa37057b
commit 4623b25ccd
8 changed files with 261 additions and 172 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 */
@@ -39,6 +41,8 @@ typedef struct parameter_t
int output_line;
/** hardware_sync false:internal, true:external */
bool sync;
/** source 0:default, 1:timebase_1, 2:timebase_2, 3:timebase_3 */
int source;
} PARAMETERS, *pPARAMETERS;