mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-24 01:47:22 +00:00
mesh: Make access packet sizes defines public
This commit makes BT_MESH_*_SDU_MAX macros public so that applications can use them. This is port of 347a1ab19f15a916a132133a0bcfa5dc87925b78
This commit is contained in:
committed by
Łukasz Rymanowski
parent
478fae3326
commit
2ea1f1eef6
@@ -42,6 +42,9 @@ extern "C" {
|
||||
#define BT_MESH_IS_DEV_KEY(key) (key == BT_MESH_KEY_DEV_LOCAL || \
|
||||
key == BT_MESH_KEY_DEV_REMOTE)
|
||||
|
||||
#define BT_MESH_APP_SEG_SDU_MAX 12
|
||||
#define BT_MESH_TX_SDU_MAX (CONFIG_BT_MESH_TX_SEG_MAX * BT_MESH_APP_SEG_SDU_MAX)
|
||||
#define BT_MESH_RX_SDU_MAX (CONFIG_BT_MESH_RX_SEG_MAX * BT_MESH_APP_SEG_SDU_MAX)
|
||||
/** Helper to define a mesh element within an array.
|
||||
*
|
||||
* In case the element has no SIG or Vendor models the helper
|
||||
|
||||
@@ -13,9 +13,6 @@
|
||||
|
||||
#define BT_MESH_SDU_UNSEG_MAX 11
|
||||
#define BT_MESH_CTL_SEG_SDU_MAX 8
|
||||
#define BT_MESH_APP_SEG_SDU_MAX 12
|
||||
#define BT_MESH_TX_SDU_MAX (CONFIG_BT_MESH_TX_SEG_MAX * BT_MESH_APP_SEG_SDU_MAX)
|
||||
#define BT_MESH_RX_SDU_MAX (CONFIG_BT_MESH_RX_SEG_MAX * BT_MESH_APP_SEG_SDU_MAX)
|
||||
#define BT_MESH_RX_CTL_MAX (CONFIG_BT_MESH_RX_SEG_MAX * BT_MESH_CTL_SEG_SDU_MAX)
|
||||
|
||||
#define TRANS_SEQ_ZERO_MASK ((uint16_t)BIT_MASK(13))
|
||||
|
||||
Reference in New Issue
Block a user