2018-07-12 16:11:07 +00:00
|
|
|
//pat9125.h
|
2017-08-17 13:23:34 +00:00
|
|
|
#ifndef PAT9125_H
|
|
|
|
#define PAT9125_H
|
|
|
|
|
2018-07-12 16:11:07 +00:00
|
|
|
#include <inttypes.h>
|
2017-08-17 13:23:34 +00:00
|
|
|
|
|
|
|
|
2018-07-12 16:11:07 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif //defined(__cplusplus)
|
|
|
|
|
|
|
|
|
|
|
|
extern uint8_t pat9125_PID1;
|
|
|
|
extern uint8_t pat9125_PID2;
|
|
|
|
|
|
|
|
extern int16_t pat9125_x;
|
|
|
|
extern int16_t pat9125_y;
|
|
|
|
extern uint8_t pat9125_b;
|
|
|
|
extern uint8_t pat9125_s;
|
|
|
|
|
2020-08-20 10:33:52 +00:00
|
|
|
extern uint8_t pat9125_probe(void); // Return non-zero if PAT9125 can be trivially detected
|
2018-07-12 16:11:07 +00:00
|
|
|
extern uint8_t pat9125_init(void);
|
2020-02-06 12:48:23 +00:00
|
|
|
extern uint8_t pat9125_update(void); // update all sensor data
|
|
|
|
extern uint8_t pat9125_update_y(void); // update _y only
|
|
|
|
extern uint8_t pat9125_update_bs(void); // update _b/_s only
|
2018-07-12 16:11:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif //defined(__cplusplus)
|
|
|
|
|
2017-08-17 13:23:34 +00:00
|
|
|
#endif //PAT9125_H
|