00001 00002 00003 00004 00005 00006 #ifndef _C1351_H_ 00007 #define _C1351_H_ 00008 00009 #include <inttypes.h> 00010 00014 enum _potmode { 00015 POTMOUSE_C1351 = 0, //<! proportional mode 00016 POTMOUSE_JOYSTICK //<! joystick mode 00017 }; 00018 00020 void potmouse_init(); 00021 00024 void potmouse_start(uint8_t mode); 00025 00027 void potmouse_movt(int16_t dx, int16_t dy, uint8_t button); 00028 00030 void potmouse_zero(uint16_t zero); 00031 00032 #endif