2.7.3 USR_MLME_DisassociateInd callback Function

C

void USR_MLME_DisassociateInd(uint64_t DeviceAddress, uint8_t DisassociateReason)

Summary

Callback function that must be implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.indication.

Description

This function implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.indication.

Precondition

WPAN_Init() should have been called before calling this function.

Parameters

ParamDescription
DeviceAddressExtended address of device which initiated the disassociation request
DisassociateReasonReason for the disassociation. Valid values: - @ref WPAN_DISASSOC_BYPARENT, - @ref WPAN_DISASSOC_BYCHILD

Returns

None.

Example

void USR_MLME_DisassociateInd(uint64_t DeviceAddress, uint8_t DisassociateReason)
{
    DeviceAddress = DeviceAddress;
    DisassociateReason = DisassociateReason;
}

Remarks

There is weak function for this callback. User has to define own implementation for required operation on the reception of particular callback.