text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
/* */ #ifndef _ESP_BLE_MESH_MBT_MODEL_API_H_ #define _ESP_BLE_MESH_MBT_MODEL_API_H_ #include "esp_ble_mesh_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_BLE_MESH_MODEL_OP_BLOB_TRANSFER_GET ESP_BLE_MESH_MODEL_OP_2(0x83, 0x00) #define ESP_BLE_MESH_MODEL_OP_BLOB_TRANSFER_START ESP_BLE_MESH_...
3,241
< Pointer to BLOB Transfer Server model */ } esp_ble_mesh_mbt_srv_t; /** Parameters of BLOB receiver */ typedef struct { uint16_t unicast_addr; /*!< Unicast address of the server */ uint8_t retrieved_transfer_phase; /*!< Retrieved transfer phase of the ser...
3,241
*/ uint8_t transfer_mode:2; /*!< BLOB transfer mode */ uint8_t expected_blob_id[ESP_BLE_MESH_BLOB_ID_SIZE]; /*!< Expected BLOB identifier list */ uint32_t blob_size; /*!< BLOB size in octets */ uint8_t block_size_log; ...
3,241
< Max Chunk Size */ uint32_t max_blob_size; /*!< Max BLOB Size */ uint16_t server_mtu_size; /*!< Server MTU size */ uint8_t supported_transfer_mode; /*!< Supported Transfer Mode */ } esp_ble_mesh_blob_capabilities_t; ...
3,241
< Unicast address list */ } esp_ble_mesh_retrieve_capabilities_t; /*!< Parameters of BLOB retrieve capabilities */ /** Parameters of BLOB transfer */ typedef struct { esp_ble_mesh_model_t *model; /*!< Pointer to BLOB Transfer Server model */ uint8_t msg_role; ...
3,241
< BLOB data */ uint8_t transfer_mode; /*!< BLOB transfer mode */ uint16_t client_timeout_base; /*!< Time wait for messages from the serve */ } esp_ble_mesh_transfer_blob_t; /*!< Parameters of BLOB transfer */ /** Parameters of BLOB Bloc...
3,241
< BLOB Block Status message structure */ /** Parameters of BLOB send message */ typedef struct { esp_ble_mesh_model_t *model; /*!< Pointer to BLOB Transfer Server model */ uint8_t msg_role; /*!< Role of the device - Node/Provisioner */ uint16_t mult...
3,241
< AppKey Index state */ uint8_t transfer_ttl; /*!< Transfer TTL state */ } esp_ble_mesh_determine_block_status_t; /*!< Parameters of determine Block Status message */ /** Parameters of determine Block Status message */ typedef struct { esp_ble_mesh_model_t *model; ...
3,241
< Pointer to BLOB Transfer Server model */ uint8_t msg_role; /*!< Role of the device - Node/Provisioner */ uint16_t multicast_addr; /*!< Multicast Address state */ uint16_t app_idx; /*!< AppKey Index state */ ...
3,241
< Result of starting Retrieve Capabilities procedure */ esp_ble_mesh_retrieve_capabilities_t input; /*!< Input of starting Retrieve Capabilities procedure */ } retrieve_capabilities_status; /*!< Retrieve capabilities status */ /** Transfer BLOB status */ struct { int ...
3,241
< Result of starting Send Data sub-procedure */ esp_ble_mesh_send_data_t input; /*!< Input of starting Send Data sub-procedure */ } send_data_status; /*!< Send data status */ /** Determine block status */ struct { int error_code; ...
3,241
< Result of starting Cancel Transfer procedure */ esp_ble_mesh_cancel_transfer_t input; /*!< Input of starting Cancel Transfer procedure */ } cancel_transfer_status; /*!< Cancel transfer status */ /** Retrieve capabilities complete */ struct { esp_ble_mesh...
3,241
< Pointer to the BLOB Transfer Client model */ uint8_t result; /*!< Result of Send Block sub-procedure */ } send_block_comp; /*!< Send block complete */ /** Send data complete */ struct { esp_ble_mesh_model_t *model; ...
3,241
< Pointer to the BLOB Transfer Client model */ uint8_t result; /*!< Result of Determine Transfer Status procedure */ } determine_transfer_status_comp; /*!< Determine transfer status complete */ /** Cancel transfer complete */ struct { esp_ble...
3,241
< Result of clearing Transfer TTL state */ esp_ble_mesh_model_t *model; /*!< Pointer to the BLOB Transfer Client model */ } clear_transfer_ttl; /*!< Clear transfer TTL */ /** Set application index */ struct { int error_code; ...
3,241
< Result of setting Multicast Address state */ esp_ble_mesh_model_t *model; /*!< Pointer to the BLOB Transfer Client model */ uint16_t multicast_addr; /*!< Multicast Address state */ } set_multicast_addr; /*!< Set multicast addr...
3,241
< BLOB Transfer Client model callback parameters */ /** */ typedef enum { ESP_BLE_MESH_MBT_CLIENT_RETRIEVE_CAPABILITIES_STATUS_EVT, ESP_BLE_MESH_MBT_CLIENT_TRANSFER_BLOB_STATUS_EVT, ESP_BLE_MESH_MBT_CLIENT_SEND_BLOCK_STATUS_EVT, ESP_BLE_MESH_MBT_CLIENT_SEND_DATA_STATUS_EVT, ESP_BLE_MESH_MBT_CLIENT...
3,241
< Pointer to the BLOB Transfer Client model */ uint8_t blob_id[ESP_BLE_MESH_BLOB_ID_SIZE]; /*!< BLOB identifier list */ uint16_t timeout; /*!< Timeout */ uint8_t transfer_ttl; /*!< Transfer TTL state */ } esp_ble_mesh_initialize_blob_r...
3,241
< Result of initializing BLOB receive */ esp_ble_mesh_initialize_blob_receive_t input; /*!< Input of initializing BLOB receive */ } initialize_blob_receive_comp; /*!< Initialize BLOB receive complete */ /** Cancel BLOB receive complete */ struct { int error_code; ...
3,241
< BLOB Transfer Get message context */ } blob_transfer_get; /*!< BLOB transfer get */ /** BLOB transfer start */ struct { esp_ble_mesh_msg_ctx_t ctx; /*!< BLOB Transfer Start message context */ } blob_transfer_start; ...
3,241
< BLOB Chunk Transfer message context */ } blob_chunk_transfer; /*!< BLOB chunk transfer */ /** BLOB information get */ struct { esp_ble_mesh_msg_ctx_t ctx; /*!< BLOB Information Get message context */ } blob_information_get; ...
3,241
< Value of the received blob transfer messages */ } esp_ble_mesh_mbt_server_cb_param_t; /*!< BLOB Transfer Server model callback parameters */ /** This enum value is the event of BLOB Transfer Server model */ typedef enum { ESP_BLE_MESH_MBT_SERVER_INITIALIZE_BLOB_RECEIVE_COMP_EVT, ESP_BLE_MES...
3,241
/* */ /** */ #ifndef _BLE_MESH_UTILS_H_ #define _BLE_MESH_UTILS_H_ #include #include "esp_bit_defs.h" #include "mesh/types.h" #include "utils_loops.h" #ifdef __cplusplus extern "C" { #endif /* Helper to pass a int as a pointer or vice-versa. */ #ifndef POINTER_TO_UINT #define POINTER_TO_UINT(x) ((uint32_t) (x)...
3,242
(a) : (b)) #endif /** @brief Return smaller value of two provided expressions. */ #ifndef MIN #define MIN(a, b) (((a) F(i, ...). @p F is called repeatedly in the expansion. */ #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__) const char *bt_hex(const void *buf, size_t len)...
3,242
/* */ #ifndef _BLE_MESH_COMPILER_H_ #define _BLE_MESH_COMPILER_H_ #ifdef __cplusplus extern "C" { #endif #define ___in_section(a, b, c) #define __in_section(a, b, c) ___in_section(a, b, c) #define __in_section_unique(seg) ___in_section(seg, __FILE__, __COUNTER__) #ifndef __packed #define __packed __attrib...
3,243
/* */ #ifndef _BLE_MESH_BYTEORDER_H_ #define _BLE_MESH_BYTEORDER_H_ #include "mesh/types.h" #include "mesh/trace.h" #ifdef __cplusplus extern "C" { #endif /* Internal helpers only used by the sys_* APIs further below */ #ifndef __bswap_16 #define __bswap_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) > 16)...
3,244
/* */ #ifndef _BLE_MESH_CONFIG_H_ #define _BLE_MESH_CONFIG_H_ #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif #ifndef CONFIG_BLE_MESH_PBA_SAME_TIME #define CONFIG_BLE_MESH_PBA_SAME_TIME 0 #endif #ifndef CONFIG_BLE_MESH_PBG_SAME_TIME #define CONFIG_BLE_MESH_PBG_SAME_TIME 0 #endif #define CONFIG_...
3,245
/* */ #ifndef _BLE_MESH_TYPES_H_ #define _BLE_MESH_TYPES_H_ #include #include #include #ifdef __cplusplus extern "C" { #endif typedef int bt_mesh_atomic_t; #ifndef PRIu64 #define PRIu64 "llu" #endif #ifndef PRIx64 #define PRIx64 "llx" #endif #ifdef __cplusplus } #endif #endif /* _BLE_MESH_...
3,246
/* */ #ifndef _BLE_MESH_FFS_H_ #define _BLE_MESH_FFS_H_ #include "mesh/types.h" #include "mesh/compiler.h" #ifdef __cplusplus extern "C" { #endif /** */ static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op) { if (op == 0) { return 0; } return 32 - __builtin_clz(op); } /** */ static ...
3,247
/* */ /** */ #ifndef _BLE_MESH_DLIST_H_ #define _BLE_MESH_DLIST_H_ #include #include "mesh/utils.h" #ifdef __cplusplus extern "C" { #endif struct _dnode { union { struct _dnode *head; /* ptr to head of list (sys_dlist_t) */ struct _dnode *next; /* ptr to next node (sys_dnode_t) */ };...
3,248
CONTAINER_OF(__dn, __typeof__(*__cn), __n) : NULL) /* */ #define SYS_DLIST_PEEK_HEAD_CONTAINER(__dl, __cn, __n) \ SYS_DLIST_CONTAINER(sys_dlist_peek_head(__dl), __cn, __n) /* */ #define SYS_DLIST_PEEK_NEXT_CONTAINER(__dl, __cn, __n) \ ((__cn) ? SYS_DLIST_CONTAINER(sys_dlist_peek_next(__dl, &(__cn->__n)), \ ...
3,248
= list->tail; } /** */ static inline sys_dnode_t *sys_dlist_peek_head(sys_dlist_t *list) { return sys_dlist_is_empty(list) ? NULL : list->head; } /** */ static inline sys_dnode_t *sys_dlist_peek_head_not_empty(sys_dlist_t *list) { return list->head; } /** */ static inline sys_dnode_t *sys_dlist_peek_ne...
3,248
insert_point) { sys_dlist_prepend(list, node); } else { node->next = insert_point->next; node->prev = insert_point; insert_point->next->prev = node; insert_point->next = node; } } /** */ static inline void sys_dlist_insert_before(sys_dlist_t *list, ...
3,248
cond(pos, data)) { pos = sys_dlist_peek_next(list, pos); } sys_dlist_insert_before(list, pos, node); } } /** */ static inline void sys_dlist_remove(sys_dnode_t *node) { node->prev->next = node->next; node->next->prev = node->prev; } /** */ static inline sys_dnode_t *sys_dli...
3,248
/** @file */ /* */ #ifndef _BLE_MESH_BUF_H_ #define _BLE_MESH_BUF_H_ #include "mesh/config.h" #include "mesh/types.h" #include "mesh/slist.h" #include "mesh/compiler.h" #ifdef __cplusplus extern "C" { #endif /* Unaligned access */ #define UNALIGNED_GET(p) \ __extension__ ({ ...
3,249
data = net_buf_data_##_name, \ .len = 0, \ .size = _size, \ .__buf = net_buf_data_##_name, \ } /** */ struct net_buf_simple { /** Pointer to the start of data in the buffer. */ uint8_t *data; ...
3,249
buf->__buf) { buf->__buf = (uint8_t *)buf + sizeof(*buf); } buf->data = buf->__buf + reserve_head; buf->len = 0; } /** */ void net_buf_simple_init_with_data(struct net_buf_simple *buf, void *data, size_t size); /** */ static inline void net_buf_simple_reset(st...
3,249
*/ struct net_buf *frags; }; /** Reference count. */ uint8_t ref; /** Bit-field of buffer flags. */ uint8_t flags; /** Where the buffer should go when freed up. */ struct net_buf_pool *pool; /* Union for convenience access to the net_buf_simple members, also */ unio...
3,249
*/ int16_t avail_count; /** Total size of the pool. */ const uint16_t pool_size; /** Name of the pool. Used when printing pool information. */ const char *name; #endif /* CONFIG_BLE_MESH_NET_BUF_POOL_USAGE */ /** Optional destroy callback when buffer is freed. */ void (*const destroy)(st...
3,249
destroy = _destroy, \ .alloc = _alloc, \ .__bufs = (struct net_buf *)_bufs, \ } #else #define NET_BUF_POOL_INITIALIZER(_pool, _alloc, _bufs, _count, _destroy) \ { ...
3,249
data_size = _data_size, \ .data_pool = (uint8_t *)net_buf_data_##_name, \ }; \ static const struct net_buf_data_alloc net_buf_fixed_alloc_##_name = { \ .cb = &ne...
3,249
buf->len) { buf = net_buf_frag_del(NULL, buf); } } return buf; } /** */ static inline size_t net_buf_frags_len(struct net_buf *buf) { size_t bytes = 0; while (buf) { bytes += buf->len; buf = buf->frags; } return bytes; } /** */ #ifdef __cplusplus } #en...
3,249
/* */ #ifndef _BLE_MESH_TIMER_H_ #define _BLE_MESH_TIMER_H_ #include "mesh/types.h" #include "mesh/slist.h" #include "mesh/atomic.h" #ifdef __cplusplus extern "C" { #endif /* number of nsec per usec */ #define NSEC_PER_USEC 1000 /* number of microseconds per millisecond */ #define USEC_PER_MSEC 1000 /* numbe...
3,250
/* */ #ifndef _BLE_MESH_TRACE_H_ #define _BLE_MESH_TRACE_H_ #include #include "esp_log.h" #include "mesh/utils.h" #include "esp_rom_sys.h" #ifdef __cplusplus extern "C" { #endif /* Define common tracing for all */ #ifndef BLE_MESH_LOG_LEVEL_ERROR #define BLE_MESH_LOG_LEVEL_ERROR 1 #endif /* BLE_MESH_LO...
3,251
..) {esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } #define BLE_MESH_PRINT_W(tag, format, ...) {esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } #define BLE_MESH_PRINT_I(tag, format, ...) {esp_log_write(ESP_...
3,251
..) do {if ((BLE_MESH_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_WARN) && BLE_MESH_LOG_LEVEL_CHECK(BLE_MESH, WARN)) BLE_MESH_PRINT_W(BLE_MESH_TRACE_TAG, fmt, ## args);} while(0) #define BT_INFO(fmt, args...) do {if ((BLE_MESH_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_INFO) && BLE_MESH_LOG_LEVEL_CHECK(BLE_MESH, INFO)) BLE_MESH_PRINT...
3,251
..) do {if ((BLE_MESH_NET_BUF_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_WARN) && BLE_MESH_LOG_LEVEL_CHECK(BLE_MESH_NET_BUF, WARN)) BLE_MESH_PRINT_W(BLE_MESH_TRACE_TAG, fmt, ## args);} while(0) #define NET_BUF_INFO(fmt, args...) do {if ((BLE_MESH_NET_BUF_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_INFO) && BLE_MESH_LOG_LEVEL_CHECK(BLE_M...
3,251
..) do {if ((BLE_MESH_NET_BUF_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_WARN) && BLE_MESH_LOG_LEVEL_CHECK(BLE_MESH_NET_BUF, WARN)) BLE_MESH_PRINT_W(BLE_MESH_TRACE_TAG, fmt, ## args);} while(0) #define NET_BUF_SIMPLE_INFO(fmt, args...) do {if ((BLE_MESH_NET_BUF_LOG_LEVEL >= BLE_MESH_LOG_LEVEL_INFO) && BLE_MESH_LOG_LEVEL_CH...
3,251
CONFIG_BLE_MESH_NO_LOG) extern bool bt_mesh_bqb_test_flag_check(uint32_t flag_mask); extern int bt_mesh_bqb_test_flag_set(uint32_t value); #define BT_BQB(flag_mask, fmt, args...) \ do { \ if (bt_mesh_bqb_test_flag...
3,251
/* */ /** @file */ #ifndef _BLE_MESH_COMMON_H_ #define _BLE_MESH_COMMON_H_ #include #include #include "esp_attr.h" #include "esp_heap_caps.h" #include "mesh/byteorder.h" #include "mesh/ffs.h" #include "mesh/trace.h" #include "mesh/mutex.h" #include "mesh/access.h" #ifdef __cplusplus extern "C" { #endif void ...
3,252
/* */ /** */ #ifndef _BLE_MESH_SLIST_H_ #define _BLE_MESH_SLIST_H_ #include #include #include "mesh/utils.h" #ifdef __cplusplus extern "C" { #endif struct _snode { struct _snode *next; }; typedef struct _snode sys_snode_t; struct _slist { sys_snode_t *head; sys_snode_t *tail; }; typedef struct _...
3,253
CONTAINER_OF((__ln), __typeof__(*(__cn)), __n) : NULL) /* */ #define SYS_SLIST_PEEK_HEAD_CONTAINER(__sl, __cn, __n) \ SYS_SLIST_CONTAINER(sys_slist_peek_head(__sl), __cn, __n) /* */ #define SYS_SLIST_PEEK_TAIL_CONTAINER(__sl, __cn, __n) \ SYS_SLIST_CONTAINER(sys_slist_peek_tail(__sl), __cn, __n) ...
3,253
list->head); } /** */ static inline sys_snode_t *sys_slist_peek_head(sys_slist_t *list) { return list->head; } /** */ static inline sys_snode_t *sys_slist_peek_tail(sys_slist_t *list) { return list->tail; } /** */ static inline sys_snode_t *sys_slist_peek_next_no_check(sys_snode_t *node) { return node...
3,253
list->tail) { list->head = (sys_snode_t *)head; list->tail = (sys_snode_t *)tail; } else { list->tail->next = (sys_snode_t *)head; list->tail = (sys_snode_t *)tail; } } /** */ static inline void sys_slist_merge_slist(sys_slist_t *list, s...
3,253
NULL : sys_slist_get_not_empty(list); } /** */ static inline void sys_slist_remove(sys_slist_t *list, sys_snode_t *prev_node, sys_snode_t *node) { if (!prev_node) { list->head = node->next; /* Was node also the tail? */ ...
3,253
/* */ /** */ #ifndef _BLE_MESH_UTIL_LOOPS_H_ #define _BLE_MESH_UTIL_LOOPS_H_ #ifdef __cplusplus extern "C" { #endif /* Set of UTIL_LISTIFY particles */ #define Z_UTIL_LISTIFY_0(F, sep, ...) #define Z_UTIL_LISTIFY_1(F, sep, ...) \ F(0, __VA_ARGS__) #define Z_UTIL_LISTIFY_2(F, sep, ...) \ Z_UTIL_LISTIFY_1...
3,254
..) \ Z_UTIL_LISTIFY_7(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(7, __VA_ARGS__) #define Z_UTIL_LISTIFY_9(F, sep, ...) \ Z_UTIL_LISTIFY_8(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(8, __VA_ARGS__) #define Z_UTIL_LISTIFY_10(F, sep, ...) \ Z_UTIL_LISTIFY_9(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(9...
3,254
..) \ Z_UTIL_LISTIFY_15(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(15, __VA_ARGS__) #define Z_UTIL_LISTIFY_17(F, sep, ...) \ Z_UTIL_LISTIFY_16(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(16, __VA_ARGS__) #define Z_UTIL_LISTIFY_18(F, sep, ...) \ Z_UTIL_LISTIFY_17(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_23(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(23, __VA_ARGS__) #define Z_UTIL_LISTIFY_25(F, sep, ...) \ Z_UTIL_LISTIFY_24(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(24, __VA_ARGS__) #define Z_UTIL_LISTIFY_26(F, sep, ...) \ Z_UTIL_LISTIFY_25(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_31(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(31, __VA_ARGS__) #define Z_UTIL_LISTIFY_33(F, sep, ...) \ Z_UTIL_LISTIFY_32(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(32, __VA_ARGS__) #define Z_UTIL_LISTIFY_34(F, sep, ...) \ Z_UTIL_LISTIFY_33(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_39(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(39, __VA_ARGS__) #define Z_UTIL_LISTIFY_41(F, sep, ...) \ Z_UTIL_LISTIFY_40(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(40, __VA_ARGS__) #define Z_UTIL_LISTIFY_42(F, sep, ...) \ Z_UTIL_LISTIFY_41(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_47(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(47, __VA_ARGS__) #define Z_UTIL_LISTIFY_49(F, sep, ...) \ Z_UTIL_LISTIFY_48(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(48, __VA_ARGS__) #define Z_UTIL_LISTIFY_50(F, sep, ...) \ Z_UTIL_LISTIFY_49(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_55(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(55, __VA_ARGS__) #define Z_UTIL_LISTIFY_57(F, sep, ...) \ Z_UTIL_LISTIFY_56(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(56, __VA_ARGS__) #define Z_UTIL_LISTIFY_58(F, sep, ...) \ Z_UTIL_LISTIFY_57(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_63(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(63, __VA_ARGS__) #define Z_UTIL_LISTIFY_65(F, sep, ...) \ Z_UTIL_LISTIFY_64(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(64, __VA_ARGS__) #define Z_UTIL_LISTIFY_66(F, sep, ...) \ Z_UTIL_LISTIFY_65(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_71(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(71, __VA_ARGS__) #define Z_UTIL_LISTIFY_73(F, sep, ...) \ Z_UTIL_LISTIFY_72(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(72, __VA_ARGS__) #define Z_UTIL_LISTIFY_74(F, sep, ...) \ Z_UTIL_LISTIFY_73(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_79(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(79, __VA_ARGS__) #define Z_UTIL_LISTIFY_81(F, sep, ...) \ Z_UTIL_LISTIFY_80(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(80, __VA_ARGS__) #define Z_UTIL_LISTIFY_82(F, sep, ...) \ Z_UTIL_LISTIFY_81(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_87(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(87, __VA_ARGS__) #define Z_UTIL_LISTIFY_89(F, sep, ...) \ Z_UTIL_LISTIFY_88(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(88, __VA_ARGS__) #define Z_UTIL_LISTIFY_90(F, sep, ...) \ Z_UTIL_LISTIFY_89(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_95(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(95, __VA_ARGS__) #define Z_UTIL_LISTIFY_97(F, sep, ...) \ Z_UTIL_LISTIFY_96(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(96, __VA_ARGS__) #define Z_UTIL_LISTIFY_98(F, sep, ...) \ Z_UTIL_LISTIFY_97(F, sep, __VA_ARGS__) __DEBRACKET sep \ ...
3,254
..) \ Z_UTIL_LISTIFY_103(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(103, __VA_ARGS__) #define Z_UTIL_LISTIFY_105(F, sep, ...) \ Z_UTIL_LISTIFY_104(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(104, __VA_ARGS__) #define Z_UTIL_LISTIFY_106(F, sep, ...) \ Z_UTIL_LISTIFY_105(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_111(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(111, __VA_ARGS__) #define Z_UTIL_LISTIFY_113(F, sep, ...) \ Z_UTIL_LISTIFY_112(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(112, __VA_ARGS__) #define Z_UTIL_LISTIFY_114(F, sep, ...) \ Z_UTIL_LISTIFY_113(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_119(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(119, __VA_ARGS__) #define Z_UTIL_LISTIFY_121(F, sep, ...) \ Z_UTIL_LISTIFY_120(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(120, __VA_ARGS__) #define Z_UTIL_LISTIFY_122(F, sep, ...) \ Z_UTIL_LISTIFY_121(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_127(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(127, __VA_ARGS__) #define Z_UTIL_LISTIFY_129(F, sep, ...) \ Z_UTIL_LISTIFY_128(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(128, __VA_ARGS__) #define Z_UTIL_LISTIFY_130(F, sep, ...) \ Z_UTIL_LISTIFY_129(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_135(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(135, __VA_ARGS__) #define Z_UTIL_LISTIFY_137(F, sep, ...) \ Z_UTIL_LISTIFY_136(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(136, __VA_ARGS__) #define Z_UTIL_LISTIFY_138(F, sep, ...) \ Z_UTIL_LISTIFY_137(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_143(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(143, __VA_ARGS__) #define Z_UTIL_LISTIFY_145(F, sep, ...) \ Z_UTIL_LISTIFY_144(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(144, __VA_ARGS__) #define Z_UTIL_LISTIFY_146(F, sep, ...) \ Z_UTIL_LISTIFY_145(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_151(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(151, __VA_ARGS__) #define Z_UTIL_LISTIFY_153(F, sep, ...) \ Z_UTIL_LISTIFY_152(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(152, __VA_ARGS__) #define Z_UTIL_LISTIFY_154(F, sep, ...) \ Z_UTIL_LISTIFY_153(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_159(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(159, __VA_ARGS__) #define Z_UTIL_LISTIFY_161(F, sep, ...) \ Z_UTIL_LISTIFY_160(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(160, __VA_ARGS__) #define Z_UTIL_LISTIFY_162(F, sep, ...) \ Z_UTIL_LISTIFY_161(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_167(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(167, __VA_ARGS__) #define Z_UTIL_LISTIFY_169(F, sep, ...) \ Z_UTIL_LISTIFY_168(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(168, __VA_ARGS__) #define Z_UTIL_LISTIFY_170(F, sep, ...) \ Z_UTIL_LISTIFY_169(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_175(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(175, __VA_ARGS__) #define Z_UTIL_LISTIFY_177(F, sep, ...) \ Z_UTIL_LISTIFY_176(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(176, __VA_ARGS__) #define Z_UTIL_LISTIFY_178(F, sep, ...) \ Z_UTIL_LISTIFY_177(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_183(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(183, __VA_ARGS__) #define Z_UTIL_LISTIFY_185(F, sep, ...) \ Z_UTIL_LISTIFY_184(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(184, __VA_ARGS__) #define Z_UTIL_LISTIFY_186(F, sep, ...) \ Z_UTIL_LISTIFY_185(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_191(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(191, __VA_ARGS__) #define Z_UTIL_LISTIFY_193(F, sep, ...) \ Z_UTIL_LISTIFY_192(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(192, __VA_ARGS__) #define Z_UTIL_LISTIFY_194(F, sep, ...) \ Z_UTIL_LISTIFY_193(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_199(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(199, __VA_ARGS__) #define Z_UTIL_LISTIFY_201(F, sep, ...) \ Z_UTIL_LISTIFY_200(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(200, __VA_ARGS__) #define Z_UTIL_LISTIFY_202(F, sep, ...) \ Z_UTIL_LISTIFY_201(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_207(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(207, __VA_ARGS__) #define Z_UTIL_LISTIFY_209(F, sep, ...) \ Z_UTIL_LISTIFY_208(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(208, __VA_ARGS__) #define Z_UTIL_LISTIFY_210(F, sep, ...) \ Z_UTIL_LISTIFY_209(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_215(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(215, __VA_ARGS__) #define Z_UTIL_LISTIFY_217(F, sep, ...) \ Z_UTIL_LISTIFY_216(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(216, __VA_ARGS__) #define Z_UTIL_LISTIFY_218(F, sep, ...) \ Z_UTIL_LISTIFY_217(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_223(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(223, __VA_ARGS__) #define Z_UTIL_LISTIFY_225(F, sep, ...) \ Z_UTIL_LISTIFY_224(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(224, __VA_ARGS__) #define Z_UTIL_LISTIFY_226(F, sep, ...) \ Z_UTIL_LISTIFY_225(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_231(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(231, __VA_ARGS__) #define Z_UTIL_LISTIFY_233(F, sep, ...) \ Z_UTIL_LISTIFY_232(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(232, __VA_ARGS__) #define Z_UTIL_LISTIFY_234(F, sep, ...) \ Z_UTIL_LISTIFY_233(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_239(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(239, __VA_ARGS__) #define Z_UTIL_LISTIFY_241(F, sep, ...) \ Z_UTIL_LISTIFY_240(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(240, __VA_ARGS__) #define Z_UTIL_LISTIFY_242(F, sep, ...) \ Z_UTIL_LISTIFY_241(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_247(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(247, __VA_ARGS__) #define Z_UTIL_LISTIFY_249(F, sep, ...) \ Z_UTIL_LISTIFY_248(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(248, __VA_ARGS__) #define Z_UTIL_LISTIFY_250(F, sep, ...) \ Z_UTIL_LISTIFY_249(F, sep, __VA_ARGS__) __DEBRACKET ...
3,254
..) \ Z_UTIL_LISTIFY_255(F, sep, __VA_ARGS__) __DEBRACKET sep \ F(255, __VA_ARGS__) #ifdef __cplusplus } #endif #endif /* _BLE_MESH_UTIL_LOOPS_H_ */
3,254
/* */ #ifndef _BLE_MESH_KERNEL_H_ #define _BLE_MESH_KERNEL_H_ #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" #include "mesh/config.h" #include "mesh/types.h" #ifdef __cplusplus extern "C" { #endif #ifdef CONFIG_BT_BLUEDROID...
3,255
/* */ #ifndef _BLE_MESH_MUTEX_H_ #define _BLE_MESH_MUTEX_H_ #include "mesh/kernel.h" #include "mesh/slist.h" #include "mesh/atomic.h" #ifdef __cplusplus extern "C" { #endif typedef struct { SemaphoreHandle_t mutex; #if CONFIG_BLE_MESH_FREERTOS_STATIC_ALLOC StaticQueue_t *buffer; #endif } bt_mesh_mutex_t; ...
3,256
/* atomic operations */ /* */ #ifndef _BLE_MESH_ATOMIC_H_ #define _BLE_MESH_ATOMIC_H_ #include "mesh/types.h" #ifdef __cplusplus extern "C" { #endif typedef bt_mesh_atomic_t bt_mesh_atomic_val_t; /** */ /** */ #ifdef CONFIG_ATOMIC_OPERATIONS_BUILTIN static inline bt_mesh_atomic_val_t bt_mesh_atomic_inc(bt_mes...
3,257
= 0; } /** */ static inline int bt_mesh_atomic_test_and_set_bit(bt_mesh_atomic_t *target, int bit) { bt_mesh_atomic_val_t mask = BLE_MESH_ATOMIC_MASK(bit); bt_mesh_atomic_val_t old; old = bt_mesh_atomic_or(BLE_MESH_ATOMIC_ELEM(target, bit), mask); return (old & mask) != 0; } /** */ static inline v...
3,257
/* utils.h - TinyCrypt interface to platform-dependent run-time operations */ /* */ /** #ifndef __BLE_MESH_TC_UTILS_H__ #define __BLE_MESH_TC_UTILS_H__ #include #include #include #ifdef __cplusplus extern "C" { #endif /** */ unsigned int _copy(uint8_t *to, unsigned int to_len, const uint8_...
3,258
/* ctr_prng.h - TinyCrypt interface to a CTR-PRNG implementation */ /* */ /** */ #ifndef __BLE_MESH_TC_CTR_PRNG_H__ #define __BLE_MESH_TC_CTR_PRNG_H__ #include #define TC_CTR_PRNG_RESEED_REQ -1 #ifdef __cplusplus extern "C" { #endif typedef struct { /* updated each time another BLOCKLEN_BYTES bytes are pr...
3,259
/* ccm_mode.h - TinyCrypt interface to a CCM mode implementation */ /* */ /** */ #ifndef __BLE_MESH_TC_CCM_MODE_H__ #define __BLE_MESH_TC_CCM_MODE_H__ #include #include #ifdef __cplusplus extern "C" { #endif /* max additional authenticated size in bytes: 2^16 - 2^8 = 65280 */ #define TC_CCM_AAD_MAX_BYTES 0xff...
3,260
/* cbc_mode.h - TinyCrypt interface to a CBC mode implementation */ /* */ /** #ifdef __cplusplus extern "C" { #endif /** */ int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, unsigned int inlen, const uint8_t *iv, const TCAesKeySched_t sch...
3,261
/* sha256.h - TinyCrypt interface to a SHA-256 implementation */ /* */ /** */ #ifndef __BLE_MESH_TC_SHA256_H__ #define __BLE_MESH_TC_SHA256_H__ #include #include #ifdef __cplusplus extern "C" { #endif #define TC_SHA256_BLOCK_SIZE (64) #define TC_SHA256_DIGEST_SIZE (32) #define TC_SHA256_STATE_BLOCKS (TC_SHA25...
3,262
/* hmac_prng.h - TinyCrypt interface to an HMAC-PRNG implementation */ /* */ /** */ #ifndef __BLE_MESH_TC_HMAC_PRNG_H__ #define __BLE_MESH_TC_HMAC_PRNG_H__ #include #include #ifdef __cplusplus extern "C" { #endif #define TC_HMAC_PRNG_RESEED_REQ -1 struct tc_hmac_prng_struct { /* the HMAC instance for thi...
3,263
/* ecc_dh.h - TinyCrypt interface to EC-DH implementation */ /* */ /* Copyright (C) 2017 by Intel Corporation, All Rights Reserved. */ /** */ #ifndef __BLE_MESH_TC_ECC_DH_H__ #define __BLE_MESH_TC_ECC_DH_H__ #include #ifdef __cplusplus extern "C" { #endif /** */ int uECC_make_key(uint8_t *p_public_key, uint...
3,264
/* ctr_mode.h - TinyCrypt interface to CTR mode */ /* */ /** #include #ifdef __cplusplus extern "C" { #endif /** */ int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched); #ifdef __cplusplus } #endif #endif /* __BLE_M...
3,265