123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef __HAL_DETECT_LEFT_RIGHT_H__
- #define __HAL_DETECT_LEFT_RIGHT_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*Includes ------------------------------------------------------*/
- #include <stdbool.h>
- #include <stdint.h>
- #include <string.h>
- #include "sdk_common.h"
- #include "SEGGER_RTT.h"
- #include "usr_config.h"
- #include "drv_qma7981.h"
- /*API -------------------------------------------------------*/
- /**
- @brief 初始化检测左右鞋服务
- @param 无
- @return 错误代码 - [out] -1失败,0成功
- */
- int hal_qma_Init(void);
- /**
- @brief 获取QMA的状态
- @param 无
- @return 错误代码 - [out] 1 设置成功,0失败
- */
- uint8_t hal_qma_get_state(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|