Files
soc-codegen-template/apps/usr_le_code/usr_le_product.h
T
2026-08-19 16:05:36 +08:00

47 lines
1.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/******************************************************************************
* @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__ */