code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* * Copyright (c) 2011-2014, Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Misc utilities * * Misc utilities usable by the kernel and application code. */ #ifndef _UTIL__H_ #define _UTIL__H_ #ifndef _ASMLANGUAGE #include <ble_types/types.h> #ifdef __cplusplus ext...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/misc/util.h
C
apache-2.0
34,607
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef KPORT_H #define KPORT_H #define _POLL_EVENT_OBJ_INIT(obj) \ .poll_events = SYS_DLIST_STATIC_INIT(&obj.poll_events), #define _POLL_EVENT sys_dlist_t poll_events #define _K_SEM_INITIALIZER(obj, initial_count, count_limit) \ {} #define K_...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/port/kport.h
C
apache-2.0
5,040
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/port/mbox.h
C
apache-2.0
1,309
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/port/timer.h
C
apache-2.0
1,072
zephyr_library() zephyr_library_sources( bt.c ) zephyr_library_sources_ifdef( CONFIG_BT_CONN gatt.c ) zephyr_library_sources_ifdef( CONFIG_BT_CTLR ll.c ticker.c ) zephyr_library_sources_ifdef( CONFIG_SOC_FLASH_NRF flash.c )
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/CMakeLists.txt
CMake
apache-2.0
248
/** @file * @brief Bluetooth shell module * * Provide some Bluetooth shell commands that can be useful to applications. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <aos/ble.h>...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/bt.c
C
apache-2.0
50,694
/** @file * @brief Bluetooth shell functions * * This is not to be included by the application. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_H #define __BT_H extern struct bt_conn *default_conn; #endif /* __BT_H */
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/bt.h
C
apache-2.0
285
/** @file * @brief Bluetooth Controller and flash co-operation * */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <shell/shell.h> #include <misc/printk.h> #include <stdlib.h> #include <string.h> #include "flash.h" #include <soc.h> #de...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/flash.c
C
apache-2.0
4,299
/** @file * @brief Bluetooth GATT shell functions * */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <ble_types/types.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <misc/byteorder.h> #include <ble_os.h> #include <b...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/gatt.c
C
apache-2.0
53,682
/** @file @brief GATT shell functions This is not to be included by the application. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __GATT_H #define __GATT_H int cmd_gatt_show_db(int argc, char *argv[]); int cmd_gatt_exchange_mtu(int argc, char *argv[]); int c...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/gatt.h
C
apache-2.0
948
/** @file * @brief Bluetooth Link Layer functions * */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <string.h> #include <zephyr.h> #include <shell/shell.h> #include <misc/printk.h> #include <bluetooth/hci.h> #include "../controller/i...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/ll.c
C
apache-2.0
4,026
/** @file * @brief Bluetooth Link Layer shell functions * * This is not to be included by the application. */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __LL_H #define __LL_H int cmd_advx(int argc, char *argv[]); int cmd_scanx(int argc, char *argv[]); ...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/ll.h
C
apache-2.0
466
#include <aos/kernel.h> #include <stddef.h> /* #define ASSERT(expr) \ (expr?0: printf("ASSERTION Failed %s: %d\n", __FILE__,__LINE__)) #define TEST_ASSERT_EQUAL(a,b) ASSERT(a==b) #define TEST_ASSERT_NOT_EQUAL(a,b) ASSERT(a!=b) #define TEST_ASSERT(expr) ASSERT(expr) #define TEST_ASSERT_TRUE(expr) A...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/test/app_test.h
C
apache-2.0
2,041
/** @file * @brief Bluetooth shell module * * Provide some Bluetooth shell commands that can be useful to applications. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <ble_types/types.h> #include <stddef.h> #include <stdlib.h> #include <s...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/test/bt.c
C
apache-2.0
84,868
/** @file * @brief Bluetooth GATT shell functions * */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <ble_types/types.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <misc/byteorder.h> #include <zephyr.h> #include <b...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/test/gatt.c
C
apache-2.0
38,944
/** @file * @brief Bluetooth Controller Ticker functions * */ /* * Copyright (c) 2017-2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <shell/shell.h> #include <misc/printk.h> #if defined(CONFIG_SOC_FAMILY_NRF) #include "../controller/hal/nrf5/ticker.h" #en...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/bt_host/ticker.c
C
apache-2.0
2,843
## # Copyright (C) 2017 C-SKY Microsystems Co., All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.crg/licenses/LICENSE-2.0 # # Unless requi...
YifuLiu/AliOS-Things
components/ble_host/bt_shell/build.mk
Makefile
apache-2.0
1,397
/* atomic operations */ /* * Copyright (c) 1997-2015, Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __ATOMIC_H__ #define __ATOMIC_H__ #include <ble_types/types.h> #ifdef __cplusplus extern "C" { #endif typedef int atomic_t; typedef atomic_t atomic_val_t; /** * @defgroup atomic_ap...
YifuLiu/AliOS-Things
components/ble_host/include/atomic.h
C
apache-2.0
10,715
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef __BLE_CONFIG_H_ #define __BLE_CONFIG_H_ #include <ble_default_config.h> #ifdef CONFIG_BT_MESH #include "ble_mesh_default_config.h" #endif #endif //__BLE_CONFIG_H_
YifuLiu/AliOS-Things
components/ble_host/include/ble_config.h
C
apache-2.0
238
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _BLE_DEFAULT_CONFIG_H_ #define _BLE_DEFAULT_CONFIG_H_ #ifndef CONFIG_BT #error "CONFIG_BT is not defined!!!" #endif #ifdef CONFIG_BT #ifndef CONFIG_NET_BUF_USER_DATA_SIZE #define CONFIG_NET_BUF_USER_DATA_SIZE 4 #endif #ifndef CONFIG_BT_HCI #de...
YifuLiu/AliOS-Things
components/ble_host/include/ble_default_config.h
C
apache-2.0
17,912
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef _BLE_OS_H #define _BLE_OS_H #include <stddef.h> #include <ble_types/types.h> #include <misc/slist.h> #include <misc/dlist.h> #include <misc/__assert.h> #include <atomic.h> #include <k_api.h> //#include <aos/osal_debug.h> #include <ble_config.h> #...
YifuLiu/AliOS-Things
components/ble_host/include/ble_os.h
C
apache-2.0
431
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef _BLE_OS_PORT_H #define _BLE_OS_PORT_H #ifndef ASSERT #define ASSERT __ASSERT #endif #include <k_api.h> #include <misc/dlist.h> #include <misc/slist.h> #define _STRINGIFY(x) #x #define ___in_section(a, b, c) \ __attribute__((section("." ...
YifuLiu/AliOS-Things
components/ble_host/include/ble_os_port.h
C
apache-2.0
14,581
/* * Copyright (c) 2017 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BLE_TYPES_H__ #define __BLE_TYPES_H__ #include <stdint.h> #include <unistd.h> #ifdef __cplusplus extern "C" { #endif #ifndef bool #define bool unsigned char #endif typedef signed char s8_t; typedef signed short ...
YifuLiu/AliOS-Things
components/ble_host/include/ble_types/types.h
C
apache-2.0
959
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/include/hci_api.h
C
apache-2.0
10,017
/* * Copyright (c) 2013-2015 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Doubly-linked list implementation * * Doubly-linked list implementation using inline macros/functions. * This API is not thread safe, and thus if a list is used across threads, * calls to fun...
YifuLiu/AliOS-Things
components/ble_host/include/misc/dlist.h
C
apache-2.0
13,859
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * * @brief Header where single linked list utility code is found */ #ifndef __SLIST_H__ #define __SLIST_H__ #include <stddef.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif struct _snode { stru...
YifuLiu/AliOS-Things
components/ble_host/include/misc/slist.h
C
apache-2.0
11,598
/** @file * @brief Buffer management. */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __NET_BUF_H #define __NET_BUF_H #include <ble_types/types.h> #include <ble_os_port.h> #include <ble_default_config.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Netwo...
YifuLiu/AliOS-Things
components/ble_host/include/net/buf.h
C
apache-2.0
62,366
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef WORK_H #define WORK_H #if defined(__cplusplus) extern "C" { #endif #include "ble_os.h" struct k_work_q { struct k_queue queue; }; int k_work_q_start(); enum { K_WORK_STATE_PENDING, }; struct k_work; /* work define*/ typedef void (*k_w...
YifuLiu/AliOS-Things
components/ble_host/include/work.h
C
apache-2.0
1,242
#!/usr/bin/env python # Copyright (c) 2018, Ulf Magnusson # SPDX-License-Identifier: ISC # Generates a C header from the configuration, matching the format of # include/generated/autoconf.h in the kernel. # # Optionally generates a directory structure with one file per symbol that can # be used to implement increment...
YifuLiu/AliOS-Things
components/ble_host/script/Kconfiglib-10.21.0/genconfig.py
Python
apache-2.0
3,161
# Copyright (c) 2011-2018, Ulf Magnusson # SPDX-License-Identifier: ISC """ Overview ======== Kconfiglib is a Python 2/3 library for scripting and extracting information from Kconfig (https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt) configuration systems. See the homepage at https://github.com/u...
YifuLiu/AliOS-Things
components/ble_host/script/Kconfiglib-10.21.0/kconfiglib.py
Python
apache-2.0
234,390
#!/usr/bin/env python3 # Copyright (c) 2018, Nordic Semiconductor ASA and Ulf Magnusson # SPDX-License-Identifier: ISC """ Overview ======== A curses-based menuconfig implementation. The interface should feel familiar to people used to mconf ('make menuconfig'). Supports the same keys as mconf, and also supports a ...
YifuLiu/AliOS-Things
components/ble_host/script/Kconfiglib-10.21.0/menuconfig.py
Python
apache-2.0
98,166
#!/bin/sh CONFIG_FILE=$1 C_HEAD_FILE=$2 if [ ! -f "$C_HEAD_FILE" ]; then echo "[INFO] Configuration created" python3 script/Kconfiglib-10.21.0/genconfig.py --header-path $C_HEAD_FILE --config-out $CONFIG_FILE --defconfig-file ../../../defconfig bt_host/Kconfig else python3 script/Kconfiglib-10.21.0/genconfig...
YifuLiu/AliOS-Things
components/ble_host/script/gen_btconfig.sh
Shell
apache-2.0
761
/* * Copyright (C) 2017 C-SKY Microsystems Co., All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/aos/mesh.c
C
apache-2.0
20,718
## # Copyright (C) 2017 C-SKY Microsystems Co., All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.crg/licenses/LICENSE-2.0 # # Unless requi...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/build.mk
Makefile
apache-2.0
2,353
/* Bluetooth Mesh */ #ifndef __ACCESS_H #define __ACCESS_H /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* bt_mesh_model.flags */ enum { BT_MESH_MOD_BIND_PENDING = BIT(0), BT_MESH_MOD_SUB_PENDING = BIT(1), BT_MESH_MOD_PUB_PENDING = BIT(2), }; void bt_mesh_elem...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/access.h
C
apache-2.0
1,531
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* Maximum advertising data payload for a single data type */ #define BT_MESH_ADV_DATA_SIZE 29 /* The user data is a pointer (4 bytes) to struct bt_mesh_adv */ #define BT_MESH_ADV_USER_DATA_SIZE 4 #define ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/adv.h
C
apache-2.0
2,061
/** @file * @brief Bluetooth Mesh Profile APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_H #define __BT_MESH_H #include <stddef.h> #include <ble_config.h> #include <ble_os.h> #include <ble_mesh_config.h> #include <api/mesh/access.h> #include <a...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh.h
C
apache-2.0
827
/** @file * @brief Bluetooth Mesh Access Layer APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_ACCESS_H #define __BT_MESH_ACCESS_H /** * @brief Bluetooth Mesh Access Layer * @defgroup bt_mesh_access Bluetooth Mesh Access Layer * @ingroup bt_mes...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/access.h
C
apache-2.0
14,357
/** @file * @brief Bluetooth Mesh Configuration Client Model APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_CFG_CLI_H #define __BT_MESH_CFG_CLI_H /** * @brief Bluetooth Mesh * @defgroup bt_mesh_cfg_cli Bluetooth Mesh Configuration Client Model ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/cfg_cli.h
C
apache-2.0
8,768
/** @file * @brief Bluetooth Mesh Configuration Server Model APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_CFG_SRV_H #define __BT_MESH_CFG_SRV_H /** * @brief Bluetooth Mesh * @defgroup bt_mesh_cfg_srv Bluetooth Mesh Configuration Server Model ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/cfg_srv.h
C
apache-2.0
2,105
/** @file * @brief Bluetooth Mesh Configuration Server Model APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_CTRL_RELAY_H #define __BT_MESH_CTRL_RELAY_H #include <net/buf.h> #include "net.h" #define CTRL_RELAY_N_MIN 3 #define CTRL_RELAY_N_MAX 7 ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/ctrl_relay.h
C
apache-2.0
2,239
/** @file * @brief Bluetooth Mesh Health Client Model APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_HEALTH_CLI_H #define __BT_MESH_HEALTH_CLI_H /** * @brief Bluetooth Mesh * @defgroup bt_mesh_health_cli Bluetooth Mesh Health Client Model * @i...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/health_cli.h
C
apache-2.0
2,263
/** @file * @brief Bluetooth Mesh Health Server Model APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_HEALTH_SRV_H #define __BT_MESH_HEALTH_SRV_H /** * @brief Bluetooth Mesh Health Server Model * @defgroup bt_mesh_health_srv Bluetooth Mesh Healt...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/health_srv.h
C
apache-2.0
3,052
/** @file * @brief Bluetooth Mesh Profile APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_MAIN_H #define __BT_MESH_MAIN_H /** * @brief Bluetooth Mesh Provisioning * @defgroup bt_mesh_prov Bluetooth Mesh Provisioning * @ingroup bt_mesh * @{ */...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/main.h
C
apache-2.0
16,422
/** @file * @brief Bluetooth Mesh Proxy APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_MESH_PROXY_H #define __BT_MESH_PROXY_H /** * @brief Bluetooth Mesh Proxy * @defgroup bt_mesh_proxy Bluetooth Mesh Proxy * @ingroup bt_mesh * @{ */ #ifdef __cp...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/api/mesh/proxy.h
C
apache-2.0
795
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BEACON_TYPE_UNPROVISIONED 0x00 #define BEACON_TYPE_SECURE 0x01 void bt_mesh_beacon_enable(void); void bt_mesh_beacon_disable(void); void bt_mesh_beacon_ivu_initiator(bool enable); void bt...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/beacon.h
C
apache-2.0
666
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define TRANS_SEQ_AUTH_NVAL 0xffffffffffffffff #define BT_MESH_TX_SDU_MAX (CONFIG_BT_MESH_TX_SEG_MAX * 16) #define TRANS_CTL_OP_MASK ((u8_t)BIT_MASK(7)) #define TRANS_CT...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/ble_transport.h
C
apache-2.0
2,776
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ struct bt_mesh_sg { const void *data; size_t len; }; int bt_mesh_aes_cmac(const u8_t key[16], struct bt_mesh_sg *sg, size_t sg_len, u8_t mac[16]); static inline int bt_mesh_aes_cmac_one(const u8_t...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/crypto.h
C
apache-2.0
4,287
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define OP_APP_KEY_ADD BT_MESH_MODEL_OP_1(0x00) #define OP_APP_KEY_UPDATE BT_MESH_MODEL_OP_1(0x01) #define OP_DEV_COMP_DATA_STATUS BT_MESH_MODEL_OP_1(0x02) #de...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/foundation.h
C
apache-2.0
9,167
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ enum bt_mesh_friend_pdu_type { BT_MESH_FRIEND_PDU_SINGLE, BT_MESH_FRIEND_PDU_PARTIAL, BT_MESH_FRIEND_PDU_COMPLETE, }; bool bt_mesh_friend_match(u16_t net_idx, u16_t addr); struct bt_mesh_friend *bt_mesh...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/friend.h
C
apache-2.0
1,482
/** * @file testing.h * @brief Internal API for Bluetooth testing. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ void bt_test_mesh_net_recv(u8_t ttl, u8_t ctl, u16_t src, u16_t dst, const void *payload, size_t payload_len); void bt_test_mesh_model_bound(u16_t add...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/host/testing.h
C
apache-2.0
570
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf); int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf); int bt_mesh_lpn_fri...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/lpn.h
C
apache-2.0
1,407
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BT_MESH_KEY_PRIMARY 0x0000 #define BT_MESH_KEY_ANY 0xffff #define BT_MESH_ADDR_IS_UNICAST(addr) ((addr) && (addr) < 0x8000) #define BT_MESH_ADDR_IS_GROUP(addr) ((addr) >= 0xc000 && (addr) <= 0xf...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/mesh.h
C
apache-2.0
495
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _MESH_NET_H_ #define _MESH_NET_H_ #define BT_MESH_NET_FLAG_KR BIT(0) #define BT_MESH_NET_FLAG_IVU BIT(1) #define BT_MESH_KR_NORMAL 0x00 #define BT_MESH_KR_PHASE_1 0x01 #define BT_MESH_KR_PHASE_2 0x0...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/net.h
C
apache-2.0
11,355
/** @file * @brief Bluetooth Mesh Profile APIs. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _MESH_EVENT_H_ #define _MESH_EVENT_H_ typedef enum { BT_MESH_MODEL_EVT_PROV_START = 0x00, BT_MESH_MODEL_EVT_PROV_DATA, BT_MESH_MODEL_EVT_APPKEY_ADD, B...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/port/mesh_event_port.h
C
apache-2.0
1,831
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #ifndef _MESH_HAL_BLE_H_ #define _MESH_HAL_BLE_H_ #include <stdint.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <bluetooth/gatt.h> #include <net/buf.h> #include <api/mesh.h> /** @typedef bt_mesh_le_scan_cb_t * @brief Call...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/port/mesh_hal_ble.h
C
apache-2.0
8,200
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #ifndef _MESH_HAL_SEC_H_ #define _MESH_HAL_SEC_H_ #include <stdint.h> typedef void (*bt_mesh_dh_key_cb_t)(const uint8_t key[32]); /* @brief Container for public key callback */ struct bt_mesh_pub_key_cb { /** @brief Callback type for Public Key ge...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/port/mesh_hal_sec.h
C
apache-2.0
2,680
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __PROV_H #define __PROV_H void bt_mesh_pb_adv_recv(struct net_buf_simple *buf); bool bt_prov_active(void); int bt_mesh_pb_gatt_open(struct bt_conn *conn); int bt_mesh_pb_gatt_close(struct bt_conn *...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/prov.h
C
apache-2.0
607
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/provisioner_beacon.h
C
apache-2.0
807
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/provisioner_main.h
C
apache-2.0
5,075
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/provisioner_prov.h
C
apache-2.0
14,081
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/provisioner_proxy.h
C
apache-2.0
2,892
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BT_MESH_PROXY_NET_PDU 0x00 #define BT_MESH_PROXY_BEACON 0x01 #define BT_MESH_PROXY_CONFIG 0x02 #define BT_MESH_PROXY_PROV 0x03 int bt_mesh_proxy_send(struct bt_conn *conn, u8_t type, ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/proxy.h
C
apache-2.0
1,073
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_H #define __SETTINGS_H void bt_mesh_store_net(void); void bt_mesh_store_iv(bool only_duration); void bt_mesh_store_seq(void); void bt_mesh_store_rpl(struct bt_mesh_rpl *rpl); void bt_mesh_clear_node_rpl(uint16_...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/settings.h
C
apache-2.0
1,062
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_BT_MESH_SELF_TEST) int bt_mesh_test(void); #else static inline int bt_mesh_test(void) { return 0; } #endif
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/inc/test.h
C
apache-2.0
240
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <ble_types/types.h> #include <api/mesh.h> #include "common/log.h" #include "net.h" #include "foundation.h" #inclu...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/ref_impl/mesh_event_port.c
C
apache-2.0
657
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include <ble_os.h> #include "mesh_hal_ble.h" #include <bt_errno.h> #include <aos/kernel.h> #ifndef CONFIG_MESH_STACK_ALONE #include <bluetooth/conn.h> #include <bluetooth/gatt.h> #include <bluetooth/bluetooth.h> #include "provisioner_prov.h" int bt_mes...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/ref_impl/mesh_hal_ble.c
C
apache-2.0
18,139
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include <bt_errno.h> #include <stddef.h> #include <bluetooth/bluetooth.h> #include <port/mesh_hal_sec.h> #ifndef CONFIG_MESH_STACK_ALONE #include <crypto.h> #include <tinycrypt/constants.h> #include <tinycrypt/utils.h> #include <tinycrypt/aes.h> #includ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/ref_impl/mesh_hal_sec.c
C
apache-2.0
769
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <misc/util.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <api/mesh.h> #define BT_DBG_ENABLED IS_ENABLED(CO...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/access.c
C
apache-2.0
21,582
/* Bluetooth Mesh */ /* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <misc/stack.h> #include <misc/util.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <blueto...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/adv.c
C
apache-2.0
24,385
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <misc/util.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <api/mesh.h> #define BT_DBG_ENABLED IS_ENABLED(CO...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/beacon.c
C
apache-2.0
11,349
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <ble_types/types.h> #include <misc/util.h> #include <misc/byteorder.h> #include <bluetooth/bluetooth.h> #include <...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/cfg_cli.c
C
apache-2.0
60,328
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <ble_types/types.h> #include <misc/util.h> #include <misc/byteorder.h> #include <bluetooth/bluetooth.h> #include <...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/cfg_srv.c
C
apache-2.0
98,225
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdbool.h> #include <bt_errno.h> //#include <toolchain.h> #include <ble_os.h> #include <ble_types/types.h> #include <misc/byteorder.h> #include <misc/util.h> #ifdef CONFIG_BT_H...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/crypto.c
C
apache-2.0
18,677
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> #include <ble_os.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <api/mesh.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_FRIEND...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/friend.c
C
apache-2.0
34,885
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <ble_types/types.h> #include <misc/util.h> #include <misc/byteorder.h> #include <bluetooth/bluetooth.h> #include <...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/health_cli.c
C
apache-2.0
12,062
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <ble_types/types.h> #include <misc/byteorder.h> #include <misc/util.h> #include <bluetooth/bluetooth.h> #include <...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/health_srv.c
C
apache-2.0
10,883
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> #include <ble_os.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <api/mesh.h> #ifdef CONFIG_BT_MESH_LOW_POWER #define BT_DBG_ENABLED IS_ENA...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/lpn.c
C
apache-2.0
23,909
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <stdbool.h> #include <bt_errno.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <bluetooth/uuid.h> #include <api/mesh.h> #define BT...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/main.c
C
apache-2.0
11,676
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <atomic.h> #include <misc/util.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/net.c
C
apache-2.0
40,614
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <atomic.h> #include <misc/util.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <ap...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/prov.c
C
apache-2.0
42,968
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/provisioner_beacon.c
C
apache-2.0
1,970
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/provisioner_main.c
C
apache-2.0
38,079
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/provisioner_prov.c
C
apache-2.0
110,563
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/provisioner_proxy.c
C
apache-2.0
20,368
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <bluetooth/gatt.h> #include <api/mesh.h> #define BT_DBG_ENABLED IS...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/proxy.c
C
apache-2.0
35,592
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <misc/util.h> #include <misc/byteorder.h> #include <settings/settings.h> #include <net/buf.h> #include <bluetooth...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/settings.c
C
apache-2.0
47,462
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <bt_errno.h> #include <bluetooth/mesh.h> #include "common/log.h" #include "mesh.h" #include "test.h" int bt_mesh_test(void) { return 0; }
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/test.c
C
apache-2.0
285
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <string.h> #include <sys/types.h> #include <misc/util.h> #include <misc/byteorder.h> #include <net/buf.h> #include <bluetooth/hci.h> #include <api/mesh.h>...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/core/src/transport.c
C
apache-2.0
42,727
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _MESH_MODEL_H__ #define _MESH_MODEL_H__ #include "api/mesh.h" #include "api/mesh/main.h" #if defined(CONFIG_BT_MESH_MODEL_GEN_ONOFF_SRV) #include "sig_model/generic_onoff_srv.h" #endif #if defined(CONFIG_BT_MESH_MODEL_GEN_LEVEL_SRV) #include "si...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/common/include/mesh_model/mesh_model.h
C
apache-2.0
5,916
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _MODEL_BOUND_OPERATION_H #define _MODEL_BOUND_OPERATION_H #include "mesh_model.h" typedef enum _BIND_OPERATION_ID_ { /* !!!START!!! --- Don't add new ID before this ID */ B_OPS_START_ID = -1, /* Generic OnOff */ B_GEN_ONOFF_ID ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/common/include/mesh_model/model_bind_ops.h
C
apache-2.0
884
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdlib.h> #include <bt_errno.h> #include "mesh_model/mesh_model.h" #ifdef CONFIG_BT_MESH_PROVISIONER #include "provisioner_main.h" #endif extern u8_t bt_mesh_default_ttl_get(void); #define TAG "BT_MESH_MODEL" #define RECV_MSG_TID_QUEUE_SIZE 2...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/common/mesh_model.c
C
apache-2.0
8,170
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <api/mesh.h> #include <mesh_model.h> #define TAG "MESH BIND" typedef u16_t (*BIND_OPS_HANDLER)(S_ELEM_STATE *p_elem, u8_t type); u16_t model_bind_operation(BIND_OPERATION_ID id, S_ELEM_STATE *p_elem, u8_t type); static u16_t _gen_onoff_opera...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/common/model_bind_ops.c
C
apache-2.0
6,642
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include "mesh_model/mesh_model.h" #include "port/mesh_event_port.h" void mesh_model_event_cb(mesh_model_event_e event, void *p_arg) { mesh_model_event_en mesh_model_evt; model_message message; switch (event) { case BT_MESH_MODEL_EV...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/mesh_port/bt_mesh_event_port.c
C
apache-2.0
8,568
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _BT_MESH_EVENT_PORT_H_ #define _BT_MESH_EVENT_PORT_H_ int genie_mesh_port_init(void); #endif
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/mesh_port/bt_mesh_event_port.h
C
apache-2.0
168
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <api/mesh.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_MODEL) #include "bt_errno.h" #include "mesh_model/mesh_model.h" #define TAG "GEN_LEVEL_CLI" #if defined(CONFIG_BT_MESH_MODEL_GEN_LEVEL_CLI) extern u8_t bt_mesh_default_ttl_get...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/generic_level_cli.c
C
apache-2.0
5,784
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <api/mesh.h> #include "bt_errno.h" #include "mesh_model/mesh_model.h" #define TAG "GEN_ONOFF_CLI" #if defined(CONFIG_BT_MESH_MODEL_GEN_ONOFF_CLI) extern u8_t bt_mesh_default_ttl_get(void); struct bt_mesh_model_pub g_generic_onoff_cli_pub = { ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/generic_onoff_cli.c
C
apache-2.0
4,223
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <api/mesh.h> #include "bt_errno.h" #include "mesh_model/mesh_model.h" #define TAG "LIGHT_CTL_CLI" #if defined(CONFIG_BT_MESH_MODEL_LIGHT_CTL_CLI) struct bt_mesh_model_pub g_ctl_cli_pub = { .msg = NET_BUF_SIMPLE(2 + 9 + 4), }; extern u8_t...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/light_ctl_cli.c
C
apache-2.0
10,531
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <api/mesh.h> #include "bt_errno.h" #include "mesh_model/mesh_model.h" #define TAG "LIGHT_LIGHTNESS_CLI" #if defined(CONFIG_BT_MESH_MODEL_LIGHT_LIGHTNESS_CLI) extern u8_t bt_mesh_default_ttl_get(void); int light_lightness_cli_publication(stru...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/light_lightness_cli.c
C
apache-2.0
11,259
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _GENERIC_LEVEL_CLI_H_ #define _GENERIC_LEVEL_CLI_H_ #define GEN_LEVEL_CLI_OPC_NUM 2 #define MESH_MODEL_GEN_LEVEL_CLI(_user_data) BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_LEVEL_CLI, \ g_generic_level_cli_op, &g_generic_level_cli_pub,_user_data) ...
YifuLiu/AliOS-Things
components/ble_mesh/bt_mesh/mesh_models/sig_model/include/sig_model/generic_level_cli.h
C
apache-2.0
1,370