Skip to content

Commit f9668a7

Browse files
anhmolteivindj-nordic
authored andcommitted
include: ble_conn_params: use retval to list specific return values
Use @RetVal instead of @return when listing specific return values. Signed-off-by: Andreas Moltumyr <[email protected]>
1 parent d02bd38 commit f9668a7

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

include/ble_conn_params.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ typedef void (*ble_conn_params_evt_handler_t)(const struct ble_conn_params_evt *
114114
*
115115
* @param handler Handler.
116116
*
117-
* @returns 0 On success.
118-
* @returns -EFAULT If @p handler is @c NULL.
117+
* @retval 0 On success.
118+
* @retval -EFAULT If @p handler is @c NULL.
119119
*/
120120
int ble_conn_params_evt_handler_set(ble_conn_params_evt_handler_t handler);
121121

@@ -129,9 +129,9 @@ int ble_conn_params_evt_handler_set(ble_conn_params_evt_handler_t handler);
129129
* @param conn_handle Connection handle.
130130
* @param conn_params Connection parameters.
131131
*
132-
* @returns 0 Connection parameter update initiated successfully.
133-
* @returns -EINVAL If @p conn_handle is invalid.
134-
* @returns -EFAULT If @p conn_params is @c NULL.
132+
* @retval 0 Connection parameter update initiated successfully.
133+
* @retval -EINVAL If @p conn_handle is invalid.
134+
* @retval -EFAULT If @p conn_params is @c NULL.
135135
*/
136136
int ble_conn_params_override(uint16_t conn_handle, const ble_gap_conn_params_t *conn_params);
137137

@@ -152,8 +152,8 @@ int ble_conn_params_override(uint16_t conn_handle, const ble_gap_conn_params_t *
152152
* @param conn_handle Handle to the connection.
153153
* @param att_mtu Desired ATT MTU.
154154
*
155-
* @return 0 On success.
156-
* @return -EINVAL Invalid ATT MTU or connection handle.
155+
* @retval 0 On success.
156+
* @retval -EINVAL Invalid ATT MTU or connection handle.
157157
*/
158158
int ble_conn_params_att_mtu_set(uint16_t conn_handle, uint16_t att_mtu);
159159

@@ -163,9 +163,9 @@ int ble_conn_params_att_mtu_set(uint16_t conn_handle, uint16_t att_mtu);
163163
* @param conn_handle Handle to the connection.
164164
* @param[out] att_mtu The ATT MTU value.
165165
*
166-
* @return 0 On success.
167-
* @return -EINVAL Invalid connection handle.
168-
* @return -EFAULT @p att_mtu is @c NULL.
166+
* @retval 0 On success.
167+
* @retval -EINVAL Invalid connection handle.
168+
* @retval -EFAULT @p att_mtu is @c NULL.
169169
*/
170170
int ble_conn_params_att_mtu_get(uint16_t conn_handle, uint16_t *att_mtu);
171171

@@ -178,8 +178,8 @@ int ble_conn_params_att_mtu_get(uint16_t conn_handle, uint16_t *att_mtu);
178178
* @param conn_handle Handle to the connection.
179179
* @param data_length Desired GAP data length.
180180
*
181-
* @return 0 On success.
182-
* @return -EINVAL Invalid data length or connection handle.
181+
* @retval 0 On success.
182+
* @retval -EINVAL Invalid data length or connection handle.
183183
*/
184184
int ble_conn_params_data_length_set(uint16_t conn_handle, struct ble_conn_params_data_length dl);
185185

@@ -189,9 +189,9 @@ int ble_conn_params_data_length_set(uint16_t conn_handle, struct ble_conn_params
189189
* @param conn_handle Handle to the connection.
190190
* @param[out] data_length The data length value.
191191
*
192-
* @return 0 On success.
193-
* @return -EINVAL Invalid connection handle.
194-
* @return -EFAULT @p data_length is @c NULL.
192+
* @retval 0 On success.
193+
* @retval -EINVAL Invalid connection handle.
194+
* @retval -EFAULT @p data_length is @c NULL.
195195
*/
196196
int ble_conn_params_data_length_get(uint16_t conn_handle, struct ble_conn_params_data_length *dl);
197197

@@ -204,8 +204,8 @@ int ble_conn_params_data_length_get(uint16_t conn_handle, struct ble_conn_params
204204
* @param conn_handle Handle to the connection.
205205
* @param phy_pref Desired GAP radio PHY mode.
206206
*
207-
* @return 0 On success.
208-
* @return -EINVAL Invalid data length or connection handle.
207+
* @retval 0 On success.
208+
* @retval -EINVAL Invalid data length or connection handle.
209209
*/
210210
int ble_conn_params_phy_radio_mode_set(uint16_t conn_handle, ble_gap_phys_t phy_pref);
211211

@@ -215,9 +215,9 @@ int ble_conn_params_phy_radio_mode_set(uint16_t conn_handle, ble_gap_phys_t phy_
215215
* @param conn_handle Handle to the connection.
216216
* @param[out] phy_pref The radio PHY mode.
217217
*
218-
* @return 0 On success.
219-
* @return -EINVAL Invalid connection handle.
220-
* @return -EFAULT @p phy_pref is @c NULL.
218+
* @retval 0 On success.
219+
* @retval -EINVAL Invalid connection handle.
220+
* @retval -EFAULT @p phy_pref is @c NULL.
221221
*/
222222
int ble_conn_params_phy_radio_mode_get(uint16_t conn_handle, ble_gap_phys_t *phy_pref);
223223

0 commit comments

Comments
 (0)