encoder_interface.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __ENCODER_INTERFACE_H__
  2. #define __ENCODER_INTERFACE_H__
  3. #include "esp_common.h"
  4. #include "log/esp_log.h"
  5. #include "hal/io.h"
  6. #include "hal/lsm6ds3.h"
  7. #include "interface/light_interface.h"
  8. #include "hal/lps25hb.h"
  9. #include "hal/max17043.h"
  10. #define Encoder_InitIO IO_InitIO
  11. #define Encoder_DisableIOInterrupts IO_DisableIOInterrupts
  12. #define Encoder_EnableIOInterrupts IO_EnableIOInterrupts
  13. #define Encoder_SetIMUCallback IO_SetIMUCallback
  14. #define Encoder_SetSwitchCallback IO_SetSwitchCallback
  15. #define Encoder_DisableDebounceTimer IO_DisableDebounceTimer
  16. #define Encoder_GetIOStates IO_GetStates
  17. #define Encoder_EnableMotion LSM6DS3_EnableMotion
  18. #define Encoder_DisableMotion LSM6DS3_DisableMotion
  19. #define Encoder_GetVoltage max17043_getVoltage
  20. #define Encoder_GetSOC max17043_getSOC
  21. #define Encoder_EnableIMUI2CInterface LSM6DS3_Enable_I2C_Bridge
  22. #define Encoder_InitUART uart_init
  23. #define Encoder_InitIMU LSM6DS3_DisableMotion
  24. #define Encoder_Find Light_Find
  25. void ICACHE_FLASH_ATTR Encoder_Shutdown(void);
  26. void ICACHE_FLASH_ATTR Encoder_Restart(void);
  27. //uint16_t ICACHE_FLASH_ATTR Encoder_GetVoltage(void);
  28. //uint16_t ICACHE_FLASH_ATTR Encoder_GetSOC(void);
  29. // void ICACHE_FLASH_ATTR Encoder_StartBatteryMonitor(uint32_t);
  30. // void ICACHE_FLASH_ATTR Encoder_StopBatteryMonitor(void);
  31. // void ICACHE_FLASH_ATTR Encoder_SetBatteryFailureCallback(battery_function_t);
  32. #endif