mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-07 02:21:49 +01:00
30 lines
600 B
C++
30 lines
600 B
C++
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
namespace esp {
|
||
|
|
namespace radio_spinel {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This class defines an template to adapt both UartSpinelInterface and SpiSpinelInterface.
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
template <typename InterfaceType> class SpinelInterfaceAdapter {
|
||
|
|
public:
|
||
|
|
SpinelInterfaceAdapter(void) {}
|
||
|
|
|
||
|
|
~SpinelInterfaceAdapter(void) {}
|
||
|
|
|
||
|
|
InterfaceType &GetSpinelInterface(void) { return mSpinelInterface; }
|
||
|
|
|
||
|
|
private:
|
||
|
|
InterfaceType mSpinelInterface;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace radio_spinel
|
||
|
|
} // namespace esp
|