luat_touchkey.h 367 B

123456789101112131415161718192021
  1. #ifndef LUAT_TOUCHKEY_H
  2. #define LUAT_TOUCHKEY_H
  3. #include "luat_base.h"
  4. typedef struct luat_touchkey_conf
  5. {
  6. uint8_t id;
  7. uint8_t scan_period;
  8. uint8_t window;
  9. uint8_t threshold;
  10. }luat_touchkey_conf_t;
  11. int luat_touchkey_setup(luat_touchkey_conf_t *conf);
  12. int luat_touchkey_close(uint8_t id);
  13. int l_touchkey_handler(lua_State *L, void* ptr);
  14. #endif