src/core/thread/mle_tlvs.hpp
void SetLinkQualityIn(uint8_t aRouterIndex, uint8_t aLinkQuality)
    {
        int offset = ((aRouterIndex & 1) ? kOddEntryOffset : 0);
        mRouteData[aRouterIndex + aRouterIndex / 2] =
            (mRouteData[aRouterIndex + aRouterIndex / 2] & ~(kLinkQualityInMask >> offset)) |
            ((aLinkQuality << (kLinkQualityInOffset - offset)) & (kLinkQualityInMask >> offset));
    }
/**
     * This method sets the Link Quality In value for a given Router index.
     *
     * @param[in]  aRouterIndex  The Router index.
     * @param[in]  aLinkQuality  The Link Quality In value for a given Router index.
     *
     */
This method sets the Link Quality In value for a given Router index.
@param[in]  aRouterIndex  The Router index.
@param[in]  aLinkQuality  The Link Quality In value for a given Router index.
This method sets the Link Quality In value for a given Router index . @param [ in ] aRouterIndex The Router index . @param [ in ] aLinkQuality The Link Quality In value for a given Router index .
void SetLinkQualityIn(uint8_t aRouterIndex, uint8_t aLinkQuality)
    {
        int offset = ((aRouterIndex & 1) ? kOddEntryOffset : 0);
        mRouteData[aRouterIndex + aRouterIndex / 2] =
            (mRouteData[aRouterIndex + aRouterIndex / 2] & ~(kLinkQualityInMask >> offset)) |
            ((aLinkQuality << (kLinkQualityInOffset - offset)) & (kLinkQualityInMask >> offset));
    }
void SetLinkQualityIn ( uint8_t aRouterIndex , uint8_t aLinkQuality ) { int offset = ( ( aRouterIndex & 1 ) ? kOddEntryOffset : 0 ) ; mRouteData [ aRouterIndex + aRouterIndex / 2 ] = ( mRouteData [ aRouterIndex + aRouterIndex / 2 ] & ~ ( kLinkQualityInMask >> offset ) ) | ( ( aLinkQuality << ( kLinkQualityInOffset - offset ) ) & ( kLinkQualityInMask >> offset ) ) ; }
This method sets the Link Quality In value for a given Router index.
This method sets the Link Quality In value for a given Router index .