2020-03-29 18:43:56 +00:00
|
|
|
#ifndef __INTERFACES_SPI_INTERFACE_H__
|
|
|
|
#define __INTERFACES_SPI_INTERFACE_H__
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2020-03-31 18:28:36 +00:00
|
|
|
namespace pinetime::interfaces {
|
2020-03-29 18:43:56 +00:00
|
|
|
|
|
|
|
class SpiInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void send(const uint8_t * buffer, uint32_t len) = 0;
|
|
|
|
virtual void recv(uint8_t * buffer, uint32_t len) = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|