Skip to content

Commit

Permalink
[SQUASH ME] ng_sixlowpan_iphc: fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed May 27, 2015
1 parent 1cbb02b commit 58b23ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys/include/net/ng_sixlowpan/iphc.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ extern "C" {
*/
#define NG_SIXLOWPAN_IPHC_CID_EXT_LEN (1)

/**
* @brief Checks if datagram is an IPHC datagram.
*
* @param[in] data Data of a datagram, may not be NULL.
*
* @return true, if datagram is an IPHC datagram.
* @return false, if datagram is not an IPHC datagram.
*/
static inline bool ng_sixlowpan_iphc_is(uint8_t *data)
{
return ((*data & NG_SIXLOWPAN_IPHC1_DISP_MASK) == NG_SIXLOWPAN_IPHC1_DISP);
Expand Down

0 comments on commit 58b23ef

Please # to comment.