Skip to content

Commit

Permalink
Nimble: Add helper macros to set interval min / max for periodic adv
Browse files Browse the repository at this point in the history
  • Loading branch information
rahult-github committed Dec 15, 2022
1 parent 5278cc7 commit 1623ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/bt/porting/nimble/include/nimble/hci_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,8 @@ struct ble_hci_vs_rd_static_addr_rp {
#define BLE_HCI_ADV_ITVL_DEF (0x800) /* 1.28 seconds */
#define BLE_HCI_ADV_CHANMASK_DEF (0x7) /* all channels */

#define BLE_HCI_PERIODIC_ADV_ITVL (1250) /* usecs */

/* Set scan parameters */
#define BLE_HCI_SCAN_TYPE_PASSIVE (0)
#define BLE_HCI_SCAN_TYPE_ACTIVE (1)
Expand Down

0 comments on commit 1623ad0

Please sign in to comment.