app_detectIsHost.h 590 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __APP_DETECT_ISHOST_H__
  2. #define __APP_DETECT_ISHOST_H__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "system.h"
  9. #include "usr_config.h"
  10. typedef enum
  11. {
  12. DETECT_LR_INIT = 0,
  13. DETECT_LR_IS_RIGHT = 1,
  14. DETECT_LR_IS_LEFT = 2,
  15. } DETECT_LR_e;
  16. void app_detect_Init(void);
  17. void app_detect_LR_process_stop(void);
  18. uint8_t app_Get_isHost(void);
  19. uint8_t get_LR_readly(void);
  20. void app_ReSetDeviceName(void);
  21. float Mahony_M_GetRoll(void);
  22. float Mahony_M_GetPitch(void);
  23. float Mahony_M_GetYaw(void);
  24. #endif