pat9125.h 606 B

12345678910111213141516171819202122232425262728293031
  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_init(void);
  15. extern uint8_t pat9125_update(void); // update all sensor data
  16. extern uint8_t pat9125_update_y(void); // update _y only
  17. extern uint8_t pat9125_update_bs(void); // update _b/_s only
  18. #if defined(__cplusplus)
  19. }
  20. #endif //defined(__cplusplus)
  21. #endif //PAT9125_H