encoder_interface.h 797 B

1234567891011121314151617181920212223242526
  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_EnableMotion LSM6DS3_EnableMotion
  17. #define Encoder_DisableMotion LSM6DS3_DisableMotion
  18. #define Encoder_GetVoltage max17043_getVoltage
  19. #define Encoder_GetSOC max17043_getSOC
  20. #define Encoder_InitUART uart_init
  21. #endif