mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
[mac-types] add Mac::ExtendedPanId::Clear() method (#4315)
This commit is contained in:
committed by
Jonathan Hui
parent
52a04dbed1
commit
56d3a469b2
@@ -122,7 +122,7 @@ Mac::Mac(Instance &aInstance)
|
||||
|
||||
mCcaSuccessRateTracker.Reset();
|
||||
memset(&mCounters, 0, sizeof(otMacCounters));
|
||||
memset(&mExtendedPanId, 0, sizeof(ExtendedPanId));
|
||||
mExtendedPanId.Clear();
|
||||
|
||||
mSubMac.Enable();
|
||||
|
||||
|
||||
@@ -461,6 +461,12 @@ public:
|
||||
*/
|
||||
typedef String<kInfoStringSize> InfoString;
|
||||
|
||||
/**
|
||||
* This method clears the Extended PAN Identifier (sets all bytes to zero).
|
||||
*
|
||||
*/
|
||||
void Clear(void) { memset(this, 0, sizeof(*this)); }
|
||||
|
||||
/**
|
||||
* This method evaluates whether or not the Extended PAN Identifiers match.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user