ACwing Flow bridge firmware
STM32C011: PMW3901 optical flow over SPI, I2C target 0x3B
Loading...
Searching...
No Matches
flow_regs.h
Go to the documentation of this file.
1
27#ifndef FLOW_REGS_H
28#define FLOW_REGS_H
29
30#define FLOW_I2C_ADDR 0x3Bu
31#define FLOW_WHO_AM_I_VAL 0xF1u
32#define FLOW_FW_VERSION 0x10u
33#define FLOW_R_WHO_AM_I 0x00u
34#define FLOW_R_VERSION 0x01u
35#define FLOW_R_STATUS 0x02u
36#define FLOW_R_COUNT 0x03u
37#define FLOW_R_DX 0x04u
38#define FLOW_R_DY 0x06u
39#define FLOW_R_SQUAL 0x08u
40#define FLOW_R_SHUTTER 0x09u
41#define FLOW_R_DT 0x0Bu
42#define FLOW_R_CTRL 0x10u
43#define FLOW_R_FRAME FLOW_R_STATUS
44#define FLOW_FRAME_BYTES 11u
45#define FLOW_REG_SPACE 0x20u
46
47#define FLOW_S_SENSOR_OK 0x01u
48#define FLOW_S_NEW 0x02u
49#define FLOW_S_OVERFLOW 0x04u
50#define FLOW_S_REJECTED 0x08u
51
52#define FLOW_CTRL_RESET 0x01u
53#define FLOW_CTRL_REINIT 0x02u
54
55#endif /* FLOW_REGS_H */