生成代码包

This commit is contained in:
2026-09-09 10:29:41 +08:00
commit 900c5339e2
905 changed files with 216635 additions and 0 deletions
Binary file not shown.
+56
View File
@@ -0,0 +1,56 @@
/******************************************************************************
* @file usr_le_api.h
* @brief usr_le_code 静态库对外应用 API(配网 / 配对 / OTA
* @author cyWu <1917507415@qq.com>
* @date 2026.08.03
* @version V1.0.1
* @history
* - V1.0.0, 2026.08.03, cyWu, 首次发布
* - V1.0.1, 2026.08.19, cyWu, 收敛公开 API,移除 BLE 栈钩子声明
*
* @note usr_ble_adv_init / usr_le_data_recieve 为 BLE/RCSP 协议栈链接钩子,
* 由库内部实现并导出符号,不作为应用层公开接口。
******************************************************************************/
#ifndef __USR_LE_API_H__
#define __USR_LE_API_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief 进入配对/配网模式
* @note 断开当前连接、清除配对信息(不复位),重新发绑定广播
*/
void usr_goto_pair_mode(void);
/**
* @brief 清除配对信息但不复位
*/
void usr_clear_pair_info_noreset(void);
/**
* @brief 清除配对信息并延时复位
*/
void usr_clear_pair_info(void);
/**
* @brief 获取当前是否已配对
* @return 1=已配对,0=未配对
*/
uint8_t usr_get_pair_flag(void);
/**
* @brief 启动应用侧 OTA 流程
* @note 置位 usr_goto_updata,并创建 1s 周期定时器驱动断连与 OTA 广播切换
*/
void usr_app_ota_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __USR_LE_API_H__ */
+46
View File
@@ -0,0 +1,46 @@
/******************************************************************************
* @file usr_le_product.h
* @brief usr_le_code 产品身份配置接口(由应用层提供符号,库内不写死)
* @author cyWu <1917507415@qq.com>
* @date 2026.08.03
* @version V1.0.0
* @history
* - V1.0.0, 2026.08.03, cyWu, 首次发布
******************************************************************************/
#ifndef __USR_LE_PRODUCT_H__
#define __USR_LE_PRODUCT_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** 与 bleproto_packer.h 中 BLEPROTO_ADV_TLV_LENGTH_PRODCODE 一致 */
#ifndef USR_LE_PRODCODE_LEN
#define USR_LE_PRODCODE_LEN 4
#endif
/** 与 bleproto_packer.h 中 BLE_PROTO_ADV_LENGTH_PCODE 一致 */
#ifndef USR_LE_PCODE_LEN
#define USR_LE_PCODE_LEN 6
#endif
/**
* @brief 产品类别码,对应 BLE 广播 prodcode(固定 4 字节 ASCII
* @note 应用层用 JB_CATEGORY_CODE 填充,见 usr_jb_main.c
*/
extern const uint8_t g_usr_le_prodcode[USR_LE_PRODCODE_LEN];
/**
* @brief 平台产品码,对应 BLE 广播 pcode(固定 6 字节 ASCII
* @note 应用层用 JB_PRODUCT_CODE 填充,见 usr_jb_main.c
*/
extern const uint8_t g_usr_le_pcode[USR_LE_PCODE_LEN];
#ifdef __cplusplus
}
#endif
#endif /* __USR_LE_PRODUCT_H__ */