mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[spinel] add get iid method (#10516)
This commit adds a method to get spinel interface Id in `SpinelDriver`. This is to enable the user class of `SpinelDriver` can compose the spinel header itself.
This commit is contained in:
@@ -210,6 +210,14 @@ public:
|
||||
*/
|
||||
bool CoprocessorHasCap(unsigned int aCapability) { return mCoprocessorCaps.Contains(aCapability); }
|
||||
|
||||
/**
|
||||
* Returns the spinel interface id.
|
||||
*
|
||||
* @returns the spinel interface id.
|
||||
*
|
||||
*/
|
||||
spinel_iid_t GetIid(void) { return mIid; }
|
||||
|
||||
private:
|
||||
static constexpr uint16_t kMaxSpinelFrame = SPINEL_FRAME_MAX_SIZE;
|
||||
static constexpr uint16_t kVersionStringSize = 128;
|
||||
|
||||
Reference in New Issue
Block a user