Skip to content

Commit 0cbafcc

Browse files
include: bm: bluetooth: ble_qwr: align error event and doxygen fixes
Align error event at end of enum. Doxygen format fixes. Signed-off-by: Eivind Jølsgard <eivind.jolsgard@nordicsemi.no>
1 parent 4b3056f commit 0cbafcc

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

include/bm/bluetooth/ble_qwr.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ extern "C" {
4848

4949
/** @brief Queued Writes module event types. */
5050
enum ble_qwr_evt_type {
51-
/** Error event */
52-
BLE_QWR_EVT_ERROR,
5351
/** Event that indicates that an execute write command was received for a registered handle
5452
* and that the received data was actually written and is now ready.
5553
*/
@@ -58,17 +56,15 @@ enum ble_qwr_evt_type {
5856
* and that the write request must now be accepted or rejected.
5957
*/
6058
BLE_QWR_EVT_AUTH_REQUEST,
59+
/** Error event */
60+
BLE_QWR_EVT_ERROR,
6161
};
6262

6363
/** @brief Queued Writes module events. */
6464
struct ble_qwr_evt {
6565
/** Type of the event. */
6666
enum ble_qwr_evt_type evt_type;
6767
union {
68-
/** @ref BLE_QWR_EVT_ERROR event data. */
69-
struct {
70-
uint32_t reason;
71-
} error;
7268
/** @ref BLE_QWR_EVT_EXECUTE_WRITE event data. */
7369
struct {
7470
/** Handle of the attribute to which the event relates. */
@@ -79,6 +75,11 @@ struct ble_qwr_evt {
7975
/** Handle of the attribute to which the event relates. */
8076
uint16_t attr_handle;
8177
} auth_req;
78+
/** @ref BLE_QWR_EVT_ERROR event data. */
79+
struct {
80+
/** Error reason. */
81+
uint32_t reason;
82+
} error;
8283
};
8384
};
8485

0 commit comments

Comments
 (0)