diff --git a/src/lib/spinel/spinel_driver.hpp b/src/lib/spinel/spinel_driver.hpp index 0c3657f6f..7372ad166 100644 --- a/src/lib/spinel/spinel_driver.hpp +++ b/src/lib/spinel/spinel_driver.hpp @@ -180,6 +180,20 @@ public: const char *aFormat, va_list aArgs); + /* + * Sends a spinel command without arguments to the co-processor. + * + * @param[in] aCommand The spinel command. + * @param[in] aKey The spinel property key. + * @param[in] aTid The spinel transaction id. + * + * @retval OT_ERROR_NONE Successfully sent the command through spinel interface. + * @retval OT_ERROR_INVALID_STATE The spinel interface is in an invalid state. + * @retval OT_ERROR_NO_BUFS The spinel interface doesn't have enough buffer. + * + */ + otError SendCommand(uint32_t aCommand, spinel_prop_key_t aKey, spinel_tid_t aTid); + /* * Sets the handler to process the received spinel frame. * @@ -291,8 +305,6 @@ private: void *aContext); void HandleInitialFrame(const uint8_t *aFrame, uint16_t aLength, uint8_t aHeader, bool &aSave); - otError SendCommand(uint32_t aCommand, spinel_prop_key_t aKey, spinel_tid_t aTid); - otError CheckSpinelVersion(void); otError GetCoprocessorVersion(void); otError GetCoprocessorCaps(void);