28 unsigned short rxData;
29 unsigned int debug =
FALSE;
30 unsigned short retryCount = 3000;
39 }
while((rxData & 0x0400) == 0x0000 && (retryCount != 0));
43 printf(
"\r\n...Error: Stuck in Sampling Mode.");
70 }
while((rxData & 0x0020) == 0x0020 && (retryCount != 0));
74 printf(
"\r\n...Error: Filter busy bit did not return to 0b.");
102 unsigned int debug =
TRUE;
103 printf(
"\r\nRegister Dump:\r\n");
#define ADDR_BURST_CTRL2_HI
#define CMD_EN_BRSTDATA_HI
#define EPSON_FILTER_DELAY
#define ADDR_BURST_CTRL1_HI
#define ADDR_SMPL_CTRL_HI
#define CMD_EN_BRSTDATA_LO
#define ADDR_MODE_CTRL_HI
#define ADDR_MODE_CTRL_LO
void seDelayMicroSecs(uint32_t micros)
unsigned short registerRead16(unsigned char, unsigned char, unsigned int)
void registerWriteByte(unsigned char, unsigned char, unsigned char, unsigned int)
#define ADDR_UART_CTRL_LO
#define ADDR_FILTER_CTRL_LO
void seDelayMS(uint32_t millis)
#define ADDR_BURST_CTRL1_LO