27 unsigned short rxData;
28 unsigned int debug =
FALSE;
29 unsigned short retryCount = 3000;
38 }
while((rxData & 0x0400) == 0x0000 && (retryCount != 0));
42 printf(
"\r\n...Error: Stuck in Sampling Mode.");
69 }
while((rxData & 0x0020) == 0x0020 && (retryCount != 0));
73 printf(
"\r\n...Error: Filter busy bit did not return to 0b.");
101 unsigned int debug =
TRUE;
102 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