generated from hulk/gd32e23x_template_cmake_vscode
feat(VL53L4CD): 支持透过玻璃串扰补偿、串口校准命令与校准数据Flash存储
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "VL53L4CD_Driver.h"
|
||||
|
||||
/**
|
||||
* @defgroup Command 命令处理模块
|
||||
@@ -95,6 +96,27 @@ void command_execute(const char *cmd_str);
|
||||
*/
|
||||
void command_m737_timer_finished_callback(void);
|
||||
|
||||
/**
|
||||
* @brief 由主循环推送最近一帧测距结果,供 M3 命令立即查询
|
||||
* @param result 最近一帧测距结果
|
||||
* @ingroup Command
|
||||
*/
|
||||
void command_set_last_result(const vl53l4cd_result_t *result);
|
||||
|
||||
/**
|
||||
* @brief 查询测距上报是否开启(M1/M2 控制)
|
||||
* @retval true 上报开启;false 上报关闭
|
||||
* @ingroup Command
|
||||
*/
|
||||
bool get_sensor_report_enabled(void);
|
||||
|
||||
/**
|
||||
* @brief 开启/关闭测距上报(同时控制 LED),供 M1/M2 命令调用
|
||||
* @param enabled true 开启上报并点亮 LED;false 关闭上报并熄灭 LED
|
||||
* @ingroup Command
|
||||
*/
|
||||
void set_sensor_report_enabled(bool enabled);
|
||||
|
||||
/** @} */ // end of Command group
|
||||
|
||||
#endif // COMMAND_H
|
||||
|
||||
Reference in New Issue
Block a user