pat9125.h 458 B

1234567891011121314
  1. #pragma once
  2. #include <inttypes.h>
  3. extern int16_t pat9125_x;
  4. extern int16_t pat9125_y;
  5. extern uint8_t pat9125_b;
  6. extern uint8_t pat9125_s;
  7. extern uint8_t pat9125_probe(void); // Return non-zero if PAT9125 can be trivially detected
  8. extern uint8_t pat9125_init(void);
  9. extern uint8_t pat9125_update(void); // update all sensor data
  10. extern uint8_t pat9125_update_y(void); // update _y only
  11. extern uint8_t pat9125_update_bs(void); // update _b/_s only