@@ -682,7 +682,7 @@ struct bt_le_local_features {
682
682
int bt_le_get_local_features (struct bt_le_local_features * local_features );
683
683
684
684
/** Advertising options */
685
- enum advertising_options {
685
+ enum bt_le_adv_opt {
686
686
/** Convenience value when no options are specified. */
687
687
BT_LE_ADV_OPT_NONE = 0 ,
688
688
@@ -883,7 +883,7 @@ enum advertising_options {
883
883
*
884
884
* @note Cannot be set if BT_LE_ADV_OPT_CODED is set.
885
885
*
886
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
886
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
887
887
* set as @ref bt_le_adv_param.options.
888
888
*/
889
889
BT_LE_ADV_OPT_NO_2M = BIT (11 ),
@@ -896,23 +896,23 @@ enum advertising_options {
896
896
* the trade-off of lower data rate and higher power consumption.
897
897
* Connections will be established on LE Coded PHY.
898
898
*
899
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
899
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
900
900
* set as @ref bt_le_adv_param.options.
901
901
*/
902
902
BT_LE_ADV_OPT_CODED = BIT (12 ),
903
903
904
904
/**
905
905
* @brief Advertise without a device address (identity address or RPA).
906
906
*
907
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
907
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
908
908
* set as @ref bt_le_adv_param.options.
909
909
*/
910
910
BT_LE_ADV_OPT_ANONYMOUS = BIT (13 ),
911
911
912
912
/**
913
913
* @brief Advertise with transmit power.
914
914
*
915
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
915
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
916
916
* set as @ref bt_le_adv_param.options.
917
917
*/
918
918
BT_LE_ADV_OPT_USE_TX_POWER = BIT (14 ),
@@ -1005,7 +1005,7 @@ struct bt_le_adv_param {
1005
1005
/**
1006
1006
* @brief Advertising Set Identifier, valid range 0x00 - 0x0f.
1007
1007
*
1008
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
1008
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
1009
1009
*set as @ref bt_le_adv_param.options.
1010
1010
**/
1011
1011
uint8_t sid ;
@@ -1016,12 +1016,12 @@ struct bt_le_adv_param {
1016
1016
* Maximum advertising events the advertiser can skip before it must
1017
1017
* send advertising data on the secondary advertising channel.
1018
1018
*
1019
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
1019
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
1020
1020
* set as @ref bt_le_adv_param.options.
1021
1021
*/
1022
1022
uint8_t secondary_max_skip ;
1023
1023
1024
- /** @brief Bit-field of advertising options, see the @ref advertising_options field. */
1024
+ /** @brief Bit-field of advertising options, see the @ref bt_le_adv_opt field. */
1025
1025
uint32_t options ;
1026
1026
1027
1027
/**
@@ -1068,22 +1068,22 @@ struct bt_le_adv_param {
1068
1068
1069
1069
1070
1070
/** Periodic Advertising options */
1071
- enum {
1071
+ enum bt_le_per_adv_opt {
1072
1072
/** Convenience value when no options are specified. */
1073
1073
BT_LE_PER_ADV_OPT_NONE = 0 ,
1074
1074
1075
1075
/**
1076
1076
* @brief Advertise with transmit power.
1077
1077
*
1078
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
1078
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
1079
1079
* set as @ref bt_le_adv_param.options.
1080
1080
*/
1081
1081
BT_LE_PER_ADV_OPT_USE_TX_POWER = BIT (1 ),
1082
1082
1083
1083
/**
1084
1084
* @brief Advertise with included AdvDataInfo (ADI).
1085
1085
*
1086
- * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref advertising_options field) to be
1086
+ * @note Requires @ref BT_LE_ADV_OPT_EXT_ADV bit (see @ref bt_le_adv_opt field) to be
1087
1087
* set as @ref bt_le_adv_param.options.
1088
1088
*/
1089
1089
BT_LE_PER_ADV_OPT_INCLUDE_ADI = BIT (2 ),
@@ -1119,7 +1119,7 @@ struct bt_le_per_adv_param {
1119
1119
*/
1120
1120
uint16_t interval_max ;
1121
1121
1122
- /** Bit-field of periodic advertising options, see the @ref advertising_options field. */
1122
+ /** Bit-field of periodic advertising options, see the @ref bt_le_adv_opt field. */
1123
1123
uint32_t options ;
1124
1124
1125
1125
#if defined(CONFIG_BT_PER_ADV_RSP )
@@ -1436,7 +1436,7 @@ struct bt_le_per_adv_param {
1436
1436
*
1437
1437
* @param _int_min Minimum periodic advertising interval, N * 0.625 milliseconds
1438
1438
* @param _int_max Maximum periodic advertising interval, N * 0.625 milliseconds
1439
- * @param _options Periodic advertising properties bitfield, see @ref advertising_options
1439
+ * @param _options Periodic advertising properties bitfield, see @ref bt_le_adv_opt
1440
1440
* field.
1441
1441
*/
1442
1442
#define BT_LE_PER_ADV_PARAM_INIT (_int_min , _int_max , _options ) \
@@ -1451,7 +1451,7 @@ struct bt_le_per_adv_param {
1451
1451
*
1452
1452
* @param _int_min Minimum periodic advertising interval, N * 0.625 milliseconds
1453
1453
* @param _int_max Maximum periodic advertising interval, N * 0.625 milliseconds
1454
- * @param _options Periodic advertising properties bitfield, see @ref advertising_options
1454
+ * @param _options Periodic advertising properties bitfield, see @ref bt_le_adv_opt
1455
1455
* field.
1456
1456
*/
1457
1457
#define BT_LE_PER_ADV_PARAM (_int_min , _int_max , _options ) \
@@ -2071,7 +2071,7 @@ struct bt_le_per_adv_sync_cb {
2071
2071
};
2072
2072
2073
2073
/** Periodic advertising sync options */
2074
- enum {
2074
+ enum bt_le_per_adv_sync_opt {
2075
2075
/** Convenience value when no options are specified. */
2076
2076
BT_LE_PER_ADV_SYNC_OPT_NONE = 0 ,
2077
2077
@@ -2295,7 +2295,7 @@ int bt_le_per_adv_sync_recv_enable(struct bt_le_per_adv_sync *per_adv_sync);
2295
2295
int bt_le_per_adv_sync_recv_disable (struct bt_le_per_adv_sync * per_adv_sync );
2296
2296
2297
2297
/** Periodic Advertising Sync Transfer options */
2298
- enum {
2298
+ enum bt_le_per_adv_sync_transfer_opt {
2299
2299
/** Convenience value when no options are specified. */
2300
2300
BT_LE_PER_ADV_SYNC_TRANSFER_OPT_NONE = 0 ,
2301
2301
@@ -2476,7 +2476,7 @@ int bt_le_per_adv_list_remove(const bt_addr_le_t *addr, uint8_t sid);
2476
2476
int bt_le_per_adv_list_clear (void );
2477
2477
2478
2478
2479
- enum {
2479
+ enum bt_le_scan_opt {
2480
2480
/** Convenience value when no options are specified. */
2481
2481
BT_LE_SCAN_OPT_NONE = 0 ,
2482
2482
@@ -2497,7 +2497,7 @@ enum {
2497
2497
BT_LE_SCAN_OPT_NO_1M = BIT (3 ),
2498
2498
};
2499
2499
2500
- enum {
2500
+ enum bt_le_scan_type {
2501
2501
/** Scan without requesting additional information from advertisers. */
2502
2502
BT_LE_SCAN_TYPE_PASSIVE = 0x00 ,
2503
2503
@@ -2513,7 +2513,7 @@ enum {
2513
2513
2514
2514
/** LE scan parameters */
2515
2515
struct bt_le_scan_param {
2516
- /** Scan type ( BT_LE_SCAN_TYPE_ACTIVE or BT_LE_SCAN_TYPE_PASSIVE) */
2516
+ /** Scan type. @ref BT_LE_SCAN_TYPE_ACTIVE or @ref BT_LE_SCAN_TYPE_PASSIVE. */
2517
2517
uint8_t type ;
2518
2518
2519
2519
/** Bit-field of scanning options. */
@@ -2636,8 +2636,7 @@ struct bt_le_scan_cb {
2636
2636
/**
2637
2637
* @brief Initialize scan parameters
2638
2638
*
2639
- * @param _type Scan Type, BT_LE_SCAN_TYPE_ACTIVE or
2640
- * BT_LE_SCAN_TYPE_PASSIVE.
2639
+ * @param _type Scan Type, @ref BT_LE_SCAN_TYPE_ACTIVE or @ref BT_LE_SCAN_TYPE_PASSIVE.
2641
2640
* @param _options Scan options
2642
2641
* @param _interval Scan Interval (N * 0.625 ms)
2643
2642
* @param _window Scan Window (N * 0.625 ms)
@@ -2656,8 +2655,7 @@ struct bt_le_scan_cb {
2656
2655
/**
2657
2656
* @brief Helper to declare scan parameters inline
2658
2657
*
2659
- * @param _type Scan Type, BT_LE_SCAN_TYPE_ACTIVE or
2660
- * BT_LE_SCAN_TYPE_PASSIVE.
2658
+ * @param _type Scan Type, @ref BT_LE_SCAN_TYPE_ACTIVE or @ref BT_LE_SCAN_TYPE_PASSIVE.
2661
2659
* @param _options Scan options
2662
2660
* @param _interval Scan Interval (N * 0.625 ms)
2663
2661
* @param _window Scan Window (N * 0.625 ms)
0 commit comments