pat9125.h 702 B

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