Go to the documentation of this file.
29 unsigned int debug =
FALSE;
66 int smpl_ctrl_hi = (options.
dout_rate & 0x0F);
75 int filter_ctrl_lo = (options.
filter_sel & 0x1F);
107 #ifdef ACCL_RANGE_16G
108 int dlt_ctrl_hi = (options.
dlt_ovf_en & 0x01) << 1 | 1;
110 int dlt_ctrl_hi = (options.
dlt_ovf_en & 0x01) << 1;
111 #endif // ACCL_RANGE_16G
127 int atti_ctrl_lo = (options.
atti_conv & 0x1f);
150 unsigned short rxData;
151 unsigned short retryCount = 3000;
155 }
while ((rxData & 0x0020) == 0x0020 && (retryCount != 0));
157 if (retryCount == 0) {
158 printf(
"\r\n...Error: Filter busy bit did not return to 0b.");
162 #ifdef SPI // Always disable UART_AUTO mode for burst reading when using SPI IF
192 unsigned int debug =
TRUE;
193 printf(
"\r\nRegister Dump:\r\n");
#define ADDR_BURST_CTRL2_HI
void seDelayMS(uint32_t millis)
unsigned short registerRead16(unsigned char, unsigned char, unsigned int)
void registerWriteByte(unsigned char, unsigned char, unsigned char, unsigned int)
#define ADDR_BURST_CTRL1_LO
int sensorInitOptions(struct EpsonOptions options)
#define ADDR_ATTI_CTRL_LO
#define ADDR_BURST_CTRL1_HI
#define ADDR_FILTER_CTRL_LO
#define ADDR_ATTI_CTRL_HI
#define ADDR_GLOB_CMD2_LO
#define EPSON_ATTI_PROFILE_DELAY
#define ADDR_SMPL_CTRL_HI
#define EPSON_FILTER_DELAY
#define ADDR_UART_CTRL_LO