SmartSnippets DA1459x SDK
Macros
ble_config.h File Reference

BLE configuration options. More...

#include <stdint.h>
#include "ble_stack_config.h"

Go to the source code of this file.

Macros

#define dg_configBLE_CONNECTIONS_MAX   (2)
 Define the maximum number of connections. More...
 
#define dg_configBLE_OBSERVER   (1)
 Enable the Observer role in the BLE framework. More...
 
#define dg_configBLE_BROADCASTER   (1)
 Enable the Broadcaster role in the BLE framework. More...
 
#define dg_configBLE_CENTRAL   (1)
 Enable the Central role in the BLE framework. More...
 
#define dg_configBLE_PERIPHERAL   (1)
 Enable the Peripheral role in the BLE framework. More...
 
#define dg_configBLE_GATT_CLIENT   (1)
 Enable the GATT Client role in the BLE framework. More...
 
#define dg_configBLE_GATT_SERVER   (1)
 Enable the GATT Server role in the BLE framework. More...
 
#define dg_configBLE_L2CAP_COC   (1)
 Enable L2CAP CoC (Connection Oriented Channels) in the BLE framework. More...
 
#define dg_configBLE_EVENT_COUNTER_ENABLE   (0)
 Enable Event Counters in BLE ISR. More...
 
#define dg_configBLE_ADV_STOP_DELAY_ENABLE   (0)
 Enable ADV_UNDERRUN workaround. More...
 
#define dg_configBLE_SKIP_LATENCY_API   (0)
 Enable the ble_gap_skip_latency() API. More...
 
#define dg_configBLE_PRIVACY_1_2   (0)
 Enable LE Privacy v1.2 functionality. More...
 
#define dg_configBLE_DATA_LENGTH_RX_MAX   (251)
 Maximum Receive Data Channel PDU Payload Length. More...
 
#define dg_configBLE_DATA_LENGTH_TX_MAX   (251)
 Maximum Transmit Data Channel PDU Payload Length. More...
 
#define BLE_DATA_LENGTH_TO_TIME(OCTETS)   ( ( (OCTETS) + 11 + 3 ) * 8 )
 Convert Receive/Transmit Data Length to Time.
 
#define dg_configBLE_CONN_EVENT_LENGTH_MIN
 Minimum Connection Event Length. More...
 
#define dg_configBLE_CONN_EVENT_LENGTH_MAX   (0xFFFF)
 Maximum Connection Event Length. More...
 
#define dg_configBLE_DUPLICATE_FILTER_MAX   (10)
 Duplicate Filtering List Maximum size. More...
 
#define dg_configBLE_PAIR_INIT_KEY_DIST   (GAP_KDIST_ENCKEY | GAP_KDIST_IDKEY | GAP_KDIST_SIGNKEY)
 Security keys to be distributed by the pairing initiator. More...
 
#define dg_configBLE_PAIR_RESP_KEY_DIST   (GAP_KDIST_ENCKEY | GAP_KDIST_IDKEY | GAP_KDIST_SIGNKEY)
 Security keys to be distributed by the pairing responder. More...
 
#define dg_configBLE_SECURE_CONNECTIONS   (1)
 Enable Secure Connections. More...
 
#define dg_configBLE_INITIAL_TX_POWER   (GAP_TX_POWER_0_dBm)
 Pairing successes threshold for renewing the public key (DEPRECATED) More...
 
#define dg_configDEFAULT_RADIO_OP_MODE   (LOW_POWER_ALL_PHYS)
 Set Radio Power mode. More...
 
#define dg_configRF_CALIB_TEMP_DIFF   (8)
 Set temperature difference trigger for RF calibration (in Celsius degrees) More...
 
#define dg_configRF_CALIB_TEMP_POLL_INTV   (1000)
 Set temperature poll interval (in milliseconds) More...
 
#define defaultBLE_DEVICE_NAME   "Dialog BLE"
 Default device name (GAP service attribute only) More...
 
#define defaultBLE_APPEARANCE   (0)
 Default appearance (GAP service attribute only) More...
 
#define defaultBLE_MAX_CONNECTIONS   (CFG_CON)
 Default maximum number of simultaneous connections. More...
 
#define defaultBLE_MAX_BONDED   (8)
 Default maximum number of bonded devices. More...
 
#define defaultBLE_GAP_ROLE   GAP_NO_ROLE
 Default GAP role. More...
 
#define defaultBLE_ADDRESS_RENEW_DURATION   (900)
 Default random address renew duration. More...
 
#define defaultBLE_STATIC_ADDRESS   { 0x06, 0x00, 0xF4, 0x35, 0x23, 0x48 }
 Default static BD address. More...
 
#define defaultBLE_ADDRESS_TYPE   PUBLIC_ADDRESS
 Default BD address type. More...
 
#define defaultBLE_IRK
 Default Identity Resolution Key. More...
 
#define defaultBLE_ATT_DB_CONFIGURATION   (0x10)
 Default attribute database configuration. More...
 
#define defaultBLE_MAX_MTU_SIZE   (512)
 Maximum MTU size. More...
 
#define defaultBLE_MIN_MTU_SIZE   (65)
 Minimum MTU size. More...
 
#define defaultBLE_MTU_SIZE   (defaultBLE_MIN_MTU_SIZE)
 Default MTU size. More...
 
#define defaultBLE_CHANNEL_MAP   {0xFF, 0xFF, 0xFF, 0xFF, 0x1F}
 Default channel map (for central role only) More...
 
#define defaultBLE_ADVERTISE_MODE   GAP_DISC_MODE_GEN_DISCOVERABLE
 Default advertising mode. More...
 
#define defaultBLE_ADVERTISE_CHANNEL_MAP   (GAP_ADV_CHANNEL_37 | GAP_ADV_CHANNEL_38 | GAP_ADV_CHANNEL_39)
 Default channels used for advertising. More...
 
#define defaultBLE_ADVERTISE_INTERVAL_MIN   (BLE_ADV_INTERVAL_FROM_MS(687.5))
 Default minimum interval used for advertising. More...
 
#define defaultBLE_ADVERTISE_INTERVAL_MAX   (BLE_ADV_INTERVAL_FROM_MS(687.5))
 Default maximum interval used for advertising. More...
 
#define defaultBLE_ADVERTISE_FILTER_POLICY   ADV_ALLOW_SCAN_ANY_CONN_ANY
 Default filtering policy used for advertising. More...
 
#define defaultBLE_ADVERTISE_DATA_LENGTH   (28)
 Default advertising data length. More...
 
#define defaultBLE_ADVERTISE_DATA
 Default advertising Data. More...
 
#define defaultBLE_SCAN_RESPONSE_DATA_LENGTH   (31)
 Default scan response data length. More...
 
#define defaultBLE_SCAN_RESPONSE_DATA   { }
 Default scan response Data. More...
 
#define defaultBLE_SCAN_INTERVAL   (BLE_SCAN_INTERVAL_FROM_MS(100))
 Default scan interval. More...
 
#define defaultBLE_SCAN_WINDOW   (BLE_SCAN_WINDOW_FROM_MS(50))
 Default scan window. More...
 
#define defaultBLE_PPCP_INTERVAL_MIN   (BLE_CONN_INTERVAL_FROM_MS(10))
 Default peripheral preferred minimum connection interval. More...
 
#define defaultBLE_PPCP_INTERVAL_MAX   (BLE_CONN_INTERVAL_FROM_MS(20))
 Default peripheral preferred maximum connection interval. More...
 
#define defaultBLE_PPCP_SLAVE_LATENCY   (0)
 Default peripheral preferred slave latency. More...
 
#define defaultBLE_PPCP_SUP_TIMEOUT   (BLE_SUPERVISION_TMO_FROM_MS(1000))
 Default peripheral preferred supervision timeout. More...
 
#define defaultBLE_GAP_IO_CAP   GAP_IO_CAP_NO_INPUT_OUTPUT
 Default Input/Output capabilities. More...
 
#define defaultBLE_DIS_MANUFACTURER   "Renesas Electronics Corporation"
 Device Information Service default data. More...
 
#define USE_BLE_SLEEP   1
 Use passthrough mode. More...
 
#define dg_configBLE_2MBIT_PHY   (1)
 Enable 2MBIT PHY. More...
 
#define dg_configBLE_UUID_SUOTA_SERVICE   (0xFEF5)
 Set the UUID of the SUOTA service. More...
 

Detailed Description

BLE configuration options.

Copyright (C) 2015-2023 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.