14 #define MOTION_ST 0x02
21 #define PIX_ACCUM 0x09
24 #define MOUSE_CTRL 0x0d
25 #define RUN_DOWNSHIFT 0x0e
26 #define REST1_PERIOD 0x0f
27 #define REST1_DOWNSHIFT 0x10
28 #define REST2_PERIOD 0x11
29 #define REST2_DOWNSHIFT 0x12
30 #define REST3_PERIOD 0x13
31 #define PREFLASH_RUN 0x14
32 #define PREFLASH_RUN_DARK 0x18
33 #define MOTION_EXT 0x1b
35 #define SQUAL_THRESHOLD 0x1d
36 #define NAV_CTRL2 0x22
37 #define MISC_SETTINGS 0x25
38 #define RESOLUTION 0x33
39 #define LED_PRECHARGE 0x34
40 #define FRAME_IDLE 0x35
42 #define INV_REV_ID 0x3f
44 #define MOTION_CTRL 0x41
45 #define AUTO_LED_CONTROL 0x43
46 #define REST_MODE_CONFIG 0x45
60 SPI.transfer(reg_addr & 0x7f );
75 SPI.transfer(reg_addr | 0x80 );
94 SPI.setDataMode(SPI_MODE3);
95 SPI.setClockDivider(SPI_CLOCK_DIV16);
111 b = -1 * ((b ^ 0xff) + 1);
void pinMode(uint8_t, uint8_t)
Definition: main.cpp:278
#define MOUSE_CTRL
Definition: ADNS3050.h:24
void com_start()
Definition: ADNS3050.h:49
#define PIN_MISO
Definition: ADNS3050.h:5
string out
Definition: rf-id-control.py:34
void startup()
Definition: ADNS3050.h:83
uint8_t byte
Definition: Arduino.h:123
#define MSBFIRST
Definition: wiringShift.h:26
int getX()
Definition: ADNS3050.h:128
void delayMicroseconds(unsigned int howLong)
Definition: wiringPi.c:2118
#define OUTPUT
Definition: Arduino.h:34
#define HIGH
Definition: Arduino.h:30
#define INPUT
Definition: Arduino.h:33
int32_t int16_t b
Definition: IMU.cpp:172
byte Read(byte reg_addr)
Definition: ADNS3050.h:57
tuple data
Definition: ser-mon-AS7265X.py:40
def read
Definition: ow-slave-test.py:39
void digitalWrite(uint8_t, uint8_t)
Definition: main.cpp:298
int convTwosComp(int b)
Definition: ADNS3050.h:109
#define LOW
Definition: Arduino.h:31
#define RESET
Definition: ADNS3050.h:41
static __inline__ uint32_t uint32_t y
Definition: arm_acle.h:113
#define MOTION_CTRL
Definition: ADNS3050.h:44
#define PIN_NCS
Definition: ADNS3050.h:7
void begin(unsigned long baud)
Definition: HardwareSerial.h:123
int getY()
Definition: ADNS3050.h:134
void Write(byte reg_addr, byte data)
Definition: ADNS3050.h:72
size_t println(const char[])
Definition: Print.cpp:140
void getXY()
Definition: ADNS3050.h:116