diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-12-06 21:25:27 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-01-11 09:43:32 +0100 |
commit | de6e4983e7f83794e45af5a70b036ed9f4437ab5 (patch) | |
tree | a742ef30f0d1bd0a774eadad6546311773627b79 /src/utils.c | |
parent | 9043fe57e8852ac4693fe25b887246f2c23aa688 (diff) |
add some missing doxygen annotation for libosmocore functions
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index cf0c9344..c36979c9 100644 --- a/src/utils.c +++ b/src/utils.c @@ -64,12 +64,20 @@ char osmo_bcd2char(uint8_t bcd) return 'A' + (bcd - 0xa); } -/* only works for numbers in ascii */ +/*! \brief Convert number in ASCII to BCD value + * \param[in] c ASCII character + * \returns BCD encoded value of character + */ uint8_t osmo_char2bcd(char c) { return c - 0x30; } +/*! \brief Parse a string ocntaining hexadecimal digits + * \param[in] str string containing ASCII encoded hexadecimal digits + * \param[out] b output buffer + * \param[in] max_len maximum space in output buffer + */ int osmo_hexparse(const char *str, uint8_t *b, int max_len) { |