mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-18 16:03:22 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
50
mico-os/libraries/bluetooth/include/mico_bt_nvram_access.h
Normal file
50
mico-os/libraries/bluetooth/include/mico_bt_nvram_access.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* UNPUBLISHED PROPRIETARY SOURCE CODE
|
||||
* Copyright (c) 2016 MXCHIP Inc.
|
||||
*
|
||||
* The contents of this file may not be disclosed to third parties, copied or
|
||||
* duplicated in any form, in whole or in part, without the prior written
|
||||
* permission of MXCHIP Corporation.
|
||||
*
|
||||
*/
|
||||
|
||||
/** @file
|
||||
*
|
||||
* MiCO Bluetooth Low Energy (BLE) Functions
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef OFFSETOF
|
||||
#define OFFSETOF( type, member ) ( (uintptr_t)&((type *)0)->member )
|
||||
#endif /* OFFSETOF */
|
||||
|
||||
#define MICO_BT_PARA_LOCAL_KEY_DATA 65 /* BTM_SECURITY_LOCAL_KEY_DATA_LEN */
|
||||
|
||||
#define MICO_BT_DCT_NAME 249
|
||||
#define MICO_BT_DCT_MAX_KEYBLOBS 146 /* Maximum size of key blobs to be stored := size of BR-EDR link keys + size of BLE keys*/
|
||||
#define MICO_BT_DCT_ADDR_FIELD 6
|
||||
#define MICO_BT_DCT_LENGTH_FIELD 2
|
||||
#ifndef MICO_BT_DCT_MAX_DEVICES
|
||||
#define MICO_BT_DCT_MAX_DEVICES 10 /* Maximum number of device records stored in nvram */
|
||||
#endif
|
||||
#define MICO_BT_DCT_ADDR_TYPE 1
|
||||
#define MICO_BT_DCT_DEVICE_TYPE 1
|
||||
|
||||
/* Length of BD_ADDR + 2bytes length field */
|
||||
#define MICO_BT_DCT_ENTRY_HDR_LENGTH (MICO_BT_DCT_ADDR_FIELD + MICO_BT_DCT_LENGTH_FIELD + MICO_BT_DCT_ADDR_TYPE + MICO_BT_DCT_DEVICE_TYPE)
|
||||
|
||||
#define MICO_BT_DCT_LOCAL_KEY_OFFSET OFFSETOF( mico_bt_config_t, bluetooth_local_key )
|
||||
#define MICO_BT_DCT_REMOTE_KEY_OFFSET OFFSETOF( mico_bt_config_t, bluetooth_remote_key )
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user