diff options
author | Tony Zhou <tonyzhou@google.com> | 2023-10-09 09:53:42 +0800 |
---|---|---|
committer | Tony Zhou <tonyzhou@google.com> | 2023-10-09 08:32:01 +0000 |
commit | 40b63bc9db37257ed486f1537db8e66eb5afc988 (patch) | |
tree | c23ec4746810cdd4171fdca27cef2eaf26e174f4 | |
parent | 4ad01285a0b58b57e7746840c58a79f7ea4713fd (diff) | |
download | openthread-40b63bc9db37257ed486f1537db8e66eb5afc988.tar.gz |
Update spinel file to fix an automatic conflict resolving issue.
Bug: 230565248
Change-Id: Id14c60bf258b54b1cfd44a15c5a0ecfc157962c1
-rw-r--r-- | src/lib/spinel/spinel_interface.hpp | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/lib/spinel/spinel_interface.hpp b/src/lib/spinel/spinel_interface.hpp index 78b21dd28..db9f412e8 100644 --- a/src/lib/spinel/spinel_interface.hpp +++ b/src/lib/spinel/spinel_interface.hpp @@ -77,90 +77,6 @@ public: return (aLength >= sizeof(kSpinelResetCommand)) && (memcmp(aFrame, kSpinelResetCommand, sizeof(kSpinelResetCommand)) == 0); } - - /** - * Initializes the interface to the Radio Co-processor (RCP) - * - * @note This method should be called before reading and sending spinel frames to the interface. - * - * @param[in] aRadioUrl RadioUrl parsed from radio url. - * - * @retval OT_ERROR_NONE The interface is initialized successfully - * @retval OT_ERROR_ALREADY The interface is already initialized. - * @retval OT_ERROR_INVALID_ARGS The UART device or executable cannot be found or failed to open/run. - * - */ - virtual otError Init(const Url::Url &aRadioUrl) = 0; - - /** - * Deinitializes the interface to the RCP. - * - */ - virtual void Deinit(void) = 0; - - /** - * Encodes and sends a spinel frame to Radio Co-processor (RCP) over the socket. - * - * @param[in] aFrame A pointer to buffer containing the spinel frame to send. - * @param[in] aLength The length (number of bytes) in the frame. - * - * @retval OT_ERROR_NONE Successfully encoded and sent the spinel frame. - * @retval OT_ERROR_BUSY Failed due to another operation is on going. - * @retval OT_ERROR_NO_BUFS Insufficient buffer space available to encode the frame. - * @retval OT_ERROR_FAILED Failed to call the SPI driver to send the frame. - * - */ - virtual otError SendFrame(const uint8_t *aFrame, uint16_t aLength) = 0; - - /** - * Waits for receiving part or all of spinel frame within specified interval. - * - * @param[in] aTimeout The timeout value in microseconds. - * - * @retval OT_ERROR_NONE Part or all of spinel frame is received. - * @retval OT_ERROR_RESPONSE_TIMEOUT No spinel frame is received within @p aTimeout. - * - */ - virtual otError WaitForFrame(uint64_t aTimeoutUs) = 0; - - /** - * Updates the file descriptor sets with file descriptors used by the radio driver. - * - * @param[in,out] aMainloopContext A pointer to the mainloop context. - * - */ - virtual void UpdateFdSet(void *aMainloopContext) = 0; - - /** - * Performs radio driver processing. - * - * @param[in] aMainloopContext A pointer to the mainloop context. - * - */ - virtual void Process(const void *aMainloopContext) = 0; - - /** - * Returns the bus speed between the host and the radio. - * - * @returns Bus speed in bits/second. - * - */ - virtual uint32_t GetBusSpeed(void) const = 0; - - /** - * Hardware resets the RCP. - * - * @retval OT_ERROR_NONE Successfully reset the RCP. - * @retval OT_ERROR_NOT_IMPLEMENT The hardware reset is not implemented. - * - */ - virtual otError HardwareReset(void) = 0; - - /** - * Marks destructor virtual method. - * - */ - virtual ~SpinelInterface() = default; }; } // namespace Spinel } // namespace ot |