Skip to content

Commit

Permalink
BLE: Reorganize ble::gap documentation group.
Browse files Browse the repository at this point in the history
  • Loading branch information
pan- committed Nov 26, 2018
1 parent 27011fd commit 9621b26
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 16 deletions.
7 changes: 3 additions & 4 deletions features/FEATURE_BLE/ble/gap/AdvertisingDataBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
#include "UUID.h"
#include "ble/gap/Types.h"

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

namespace ble {

/*!
* List of standard Advertising Data types.
*
Expand Down Expand Up @@ -933,12 +933,11 @@ class AdvertisingDataBuilder {
uint8_t _payload_length;
};

} // namespace ble

/**
* @}
* @}
*/

} // namespace ble

#endif /* ifndef MBED_GAP_ADVERTISING_DATA_H__ */
8 changes: 4 additions & 4 deletions features/FEATURE_BLE/ble/gap/AdvertisingParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
#include "blecommon.h"
#include "SafeEnum.h"

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

namespace ble {

/**
* Parameters defining the advertising process.
*
Expand Down Expand Up @@ -531,11 +531,11 @@ class AdvertisingParameters {
bool _includeHeaderTxPower:1;
};

} // namespace ble

/**
* @}
* @}
*/

} // namespace ble

#endif /* ifndef MBED_ADVERTISING_PARAMETERS_H__ */
8 changes: 4 additions & 4 deletions features/FEATURE_BLE/ble/gap/ConnectionParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
#include "ble/BLETypes.h"
#include "mbed_assert.h"

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

namespace ble {

/**
* Parameters defining the connection initiation process.
*
Expand Down Expand Up @@ -453,11 +453,11 @@ class ConnectionParameters {
bool _enabledPhy[MAX_PARAM_PHYS];
};

} // namespace ble

/**
* @}
* @}
*/

} // namespace ble

#endif /* ifndef MBED_EXTENDED_CONNECT_PARAMETERS_H__ */
12 changes: 12 additions & 0 deletions features/FEATURE_BLE/ble/gap/Events.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

/**
* Event generated when an advertising packet is seen during passive scanning
* or a scan response is received during active scanning.
Expand Down Expand Up @@ -805,6 +812,11 @@ struct ConnectionParametersUpdateCompleteEvent {

};

/**
* @}
* @}
*/

} // namespace ble

#endif //BLE_GAP_EVENTS_H
12 changes: 12 additions & 0 deletions features/FEATURE_BLE/ble/gap/Gap.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

/**
* Define device discovery, connection and link management procedures.
*
Expand Down Expand Up @@ -1310,6 +1317,11 @@ class Gap {
#endif
};

/**
* @}
* @}
*/

} // namespace ble

#endif //BLE_GAP_GAP_H
8 changes: 4 additions & 4 deletions features/FEATURE_BLE/ble/gap/ScanParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
#include "ble/blecommon.h"
#include "BLETypes.h"

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

namespace ble {

/**
* Parameters defining the scan process.
*
Expand Down Expand Up @@ -263,11 +263,11 @@ class ScanParameters {
phy_configuration_t phy_coded_configuration;
};

} // namespace ble

/**
* @}
* @}
*/

} // namespace ble

#endif /* ifndef MBED_GAP_SCAN_PARAMETERS_H__ */
11 changes: 11 additions & 0 deletions features/FEATURE_BLE/ble/gap/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@

namespace ble {

/**
* @addtogroup ble
* @{
* @addtogroup gap
* @{
*/

/* BLE units, using microseconds as the common denominator */
typedef Duration<uint32_t, 625, Range<0x20, 0xFFFFFF> > adv_interval_t;
typedef Duration<uint16_t, 10000, Range<0x00, 0xFFFF>, Value<uint16_t, 0x0000> > adv_duration_t;
Expand Down Expand Up @@ -719,6 +726,10 @@ struct disconnection_reason_t : SafeEnum<disconnection_reason_t, uint8_t> {
}
};

/**
* @}
* @}
*/

} // namespace ble

Expand Down

0 comments on commit 9621b26

Please sign in to comment.