riot_sys

Function ieee802154_get_dst

Source
pub unsafe extern "C" fn ieee802154_get_dst(
    mhr: *const u8,
    dst: *mut u8,
    dst_pan: *mut le_uint16_t,
) -> c_int
Expand description

@brief Gets destination address from MAC header.

@pre (@p dst != NULL) && (@p dst_pan != NULL)

@param[in] mhr MAC header. @param[out] dst Destination address in network byte order in MAC header. @param[out] dst_pan Destination PAN in little-endian byte order in MAC header.

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