pat9125.h 572 B

123456789101112131415161718192021
  1. //pat9125.h
  2. #ifndef PAT9125_H
  3. #define PAT9125_H
  4. #include <inttypes.h>
  5. extern uint8_t pat9125_PID1;
  6. extern uint8_t pat9125_PID2;
  7. extern int16_t pat9125_x;
  8. extern int16_t pat9125_y;
  9. extern uint8_t pat9125_b;
  10. extern uint8_t pat9125_s;
  11. extern uint8_t pat9125_probe(void); // Return non-zero if PAT9125 can be trivially detected
  12. extern uint8_t pat9125_init(void);
  13. extern uint8_t pat9125_update(void); // update all sensor data
  14. extern uint8_t pat9125_update_y(void); // update _y only
  15. extern uint8_t pat9125_update_bs(void); // update _b/_s only
  16. #endif //PAT9125_H