added doxygen style comments
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/bcca6cc6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/bcca6cc6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/bcca6cc6 Branch: refs/heads/sterly_refactor Commit: bcca6cc6e8cfb8fcd5e544e09fa7908eb554d2c8 Parents: d763fee Author: Brian Giori <[email protected]> Authored: Thu Jul 28 14:26:47 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Wed Aug 3 14:57:50 2016 -0700 ---------------------------------------------------------------------- net/nimble/host/profiles/lls/src/ble_svc_lls.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/bcca6cc6/net/nimble/host/profiles/lls/src/ble_svc_lls.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/profiles/lls/src/ble_svc_lls.c b/net/nimble/host/profiles/lls/src/ble_svc_lls.c index fca59fa..9a8e9db 100644 --- a/net/nimble/host/profiles/lls/src/ble_svc_lls.c +++ b/net/nimble/host/profiles/lls/src/ble_svc_lls.c @@ -58,6 +58,10 @@ static const struct ble_gatt_svc_def ble_svc_lls_defs[] = { }, }; +/** + * Writes the received value from a characteristic write to + * the given destination. + */ static int ble_svc_lls_chr_write(struct os_mbuf *om, uint16_t min_len, uint16_t max_len, void *dst, @@ -134,6 +138,8 @@ ble_svc_lls_on_gap_event(int reason) /** * Gets the current alert level. + * + * @return The current alert level */ uint8_t ble_svc_lls_alert_level_get(void) @@ -142,8 +148,9 @@ ble_svc_lls_alert_level_get(void) } /** - * Sets the current alert level. Returns 0 on success and - * BLE_HS_EINVAL if the given alert level is not valid. + * Sets the current alert level. + * + * @return 0 on success, BLE_HS_EINVAL if the given alert level is not valid. */ int ble_svc_lls_alert_level_set(uint8_t alert_level)
