Download USBEE DX TEST POD USERS MANUAL

Transcript
1WireExtractor -O output.dex -P 143 -Q 500000 -M 1 -W -T -R 127
EXAMPLE SOURCE CODE
//****************************************************
// USBee DX Data Extractor
// 1 Wire Bus Extractor Example Program
// Copyright 2006, CWAV All Rights Reserved.
//****************************************************
#include
#include
#include
#include
#include
#include
#include
#include
"stdafx.h"
"stdio.h"
"conio.h"
"windows.h"
<fcntl.h>
<io.h>
<stdlib.h>
<stdio.h>
#define MAJOR_REV 1
#define MINOR_REV 0
//****************************************************
// Declare the Extractor DLL API routines
//****************************************************
#define CWAV_API __stdcall
#define CWAV_IMPORT __declspec(dllimport)
CWAV_IMPORT int CWAV_API StartExtraction( unsigned int SampleRate, unsigned long PodNumber,
unsigned int ClockMode,
unsigned char Signal, unsigned char
SSInsert, unsigned char Timestamp );
CWAV_IMPORT char CWAV_API GetNextData(unsigned char *buffer, unsigned long length);
CWAV_IMPORT int CWAV_API StopExtraction( void );
CWAV_IMPORT char CWAV_API ExtractBufferOverflow(void);
CWAV_IMPORT unsigned long CWAV_API ExtractionBufferCount(void);
//****************************************************
// Define the working buffer
//****************************************************
#define WORKING_BUFFER_SIZE
(65536*8)
unsigned char tempbuffer[WORKING_BUFFER_SIZE];
// Command Line Parameter Settings
unsigned long P_PodID = 0;
unsigned char O_OutputFilename[256] = {0};
unsigned char S_Screen = FALSE;
unsigned char _1_BytePerValue = TRUE;
unsigned char _2_BytePerValue = FALSE;
260
USBee DX Test Pod User’s Manual