Implement ROUTER_DOWNGRADE_THRESHOLD. (#588)

This commit is contained in:
Xiao Ma
2016-09-14 09:25:56 -07:00
committed by Jonathan Hui
parent ef2a1a0c9d
commit a642297520
7 changed files with 265 additions and 0 deletions
+18
View File
@@ -1492,6 +1492,24 @@ void otSetAssignLinkQuality(otInstance *aInstance, const uint8_t *aExtAddr, uint
*/
void otPlatformReset(otInstance *aInstance);
/**
* Get the ROUTER_DOWNGRADE_THRESHOLD parameter used in the Router role.
*
* @returns The ROUTER_DOWNGRADE_THRESHOLD value.
*
* @sa otSetRouterDowngradeThreshold
*/
uint8_t otGetRouterDowngradeThreshold(void);
/**
* Set the ROUTER_DOWNGRADE_THRESHOLD parameter used in the Leader role.
*
* @param[in] aThreshold The ROUTER_DOWNGRADE_THRESHOLD value.
*
* @sa otGetRouterDowngradeThreshold
*/
void otSetRouterDowngradeThreshold(uint8_t aThreshold);
/**
* @}
*