riot_sys

Function ieee802154_get_src

Source
pub unsafe extern "C" fn ieee802154_get_src(
    mhr: *const u8,
    src: *mut u8,
    src_pan: *mut le_uint16_t,
) -> c_int
Expand description

@brief Gets source address from MAC header.

@pre (@p src != NULL) && (@p src_pan != NULL)

@param[in] mhr MAC header. @param[out] src Source address in network byte order in MAC header. @param[out] src_pan Source PAN little-endian byte order in MAC header.

@return Length of source address. @return -EINVAL, if @p mhr contains unexpected flags.