[link] move otLinkSetShortAddress() decl to link_raw.h (#3348)

This commit is contained in:
Jonathan Hui
2018-12-05 05:49:13 -08:00
committed by GitHub
parent 4c783e5584
commit 10897d3e97
4 changed files with 14 additions and 14 deletions
-12
View File
@@ -441,18 +441,6 @@ OTAPI void OTCALL otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPerio
*/
OTAPI otShortAddress OTCALL otLinkGetShortAddress(otInstance *aInstance);
/**
* Set the Short Address for address filtering.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aShortAddress The IEEE 802.15.4 Short Address.
*
* @retval OT_ERROR_NONE If successful.
* @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled.
*
*/
OTAPI otError OTCALL otLinkSetShortAddress(otInstance *aInstance, uint16_t aShortAddress);
/**
* This function gets the address mode of MAC filter.
*
+12
View File
@@ -97,6 +97,18 @@ bool otLinkRawGetPromiscuous(otInstance *aInstance);
*/
otError otLinkRawSetPromiscuous(otInstance *aInstance, bool aEnable);
/**
* Set the Short Address for address filtering.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aShortAddress The IEEE 802.15.4 Short Address.
*
* @retval OT_ERROR_NONE If successful.
* @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled.
*
*/
otError OTCALL otLinkRawSetShortAddress(otInstance *aInstance, uint16_t aShortAddress);
/**
* Transition the radio from Receive to Sleep.
* Turn off the radio.