parent
adfb08bc3d
commit
e8c353bc59
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"array": "cpp",
|
||||||
|
"atomic": "cpp",
|
||||||
|
"*.tcc": "cpp",
|
||||||
|
"cctype": "cpp",
|
||||||
|
"clocale": "cpp",
|
||||||
|
"cmath": "cpp",
|
||||||
|
"cstdarg": "cpp",
|
||||||
|
"cstddef": "cpp",
|
||||||
|
"cstdint": "cpp",
|
||||||
|
"cstdio": "cpp",
|
||||||
|
"cstdlib": "cpp",
|
||||||
|
"cwchar": "cpp",
|
||||||
|
"cwctype": "cpp",
|
||||||
|
"deque": "cpp",
|
||||||
|
"unordered_map": "cpp",
|
||||||
|
"vector": "cpp",
|
||||||
|
"exception": "cpp",
|
||||||
|
"algorithm": "cpp",
|
||||||
|
"functional": "cpp",
|
||||||
|
"iterator": "cpp",
|
||||||
|
"memory": "cpp",
|
||||||
|
"memory_resource": "cpp",
|
||||||
|
"numeric": "cpp",
|
||||||
|
"optional": "cpp",
|
||||||
|
"random": "cpp",
|
||||||
|
"string": "cpp",
|
||||||
|
"string_view": "cpp",
|
||||||
|
"system_error": "cpp",
|
||||||
|
"tuple": "cpp",
|
||||||
|
"type_traits": "cpp",
|
||||||
|
"utility": "cpp",
|
||||||
|
"fstream": "cpp",
|
||||||
|
"initializer_list": "cpp",
|
||||||
|
"iosfwd": "cpp",
|
||||||
|
"iostream": "cpp",
|
||||||
|
"istream": "cpp",
|
||||||
|
"limits": "cpp",
|
||||||
|
"new": "cpp",
|
||||||
|
"ostream": "cpp",
|
||||||
|
"sstream": "cpp",
|
||||||
|
"stdexcept": "cpp",
|
||||||
|
"streambuf": "cpp",
|
||||||
|
"typeinfo": "cpp"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
#ifndef _SPIDUMMY_HPP_
|
||||||
|
#define _SPIDUMMY_HPP_
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
//#include "../../interfaces/spi.hpp"
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
struct SPI_dummy : SPI<SPI_dummy>
|
||||||
|
{
|
||||||
|
uint8_t trx_u8Impl(const uint8_t& data)
|
||||||
|
{
|
||||||
|
std::cout << "spi trx: tx " << data << " rx: " << +0 << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void txImpl(const uint8_t& data)
|
||||||
|
{
|
||||||
|
std::cout << "spi tx: " << +data << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t rxImpl()
|
||||||
|
{
|
||||||
|
std::cout << "spi rx: " << +1 << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _SPIDUMMY_HPP_
|
Loading…
Reference in new issue