-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
nRF905.hpp
51 lines (41 loc) · 1.28 KB
/
nRF905.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
//=====================================================================//
/*! @file
@brief NRF905 Single chip 433/868/915MHz Transceiver ドライバー @n
NORDIC SEMICONDUCTOR @n
https://infocenter.nordicsemi.com/pdf/nRF905_PS_v1.5.pdf @n
Copyright 2020 Kunihito Hiramatsu
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#include <cstdint>
namespace chip {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief nRF905 テンプレートクラス
@param[in] SPI SPI クラス (MISO, MOSI, SCLK)
@param[in] SS SPI/SS クラス
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <class SPI, class SS>
class nRF905 {
SPI& spi_;
public:
//-----------------------------------------------------------------//
/*!
@brief コンストラクター
@param[in] spi spi クラスを参照で渡す
*/
//-----------------------------------------------------------------//
nRF905(SPI& spi) : spi_(spi)
{ }
//-----------------------------------------------------------------//
/*!
@brief 開始
*/
//-----------------------------------------------------------------//
void start() noexcept
{
}
};
}