#pragma once #include "config.hpp" #include "hardware.hpp" #include "software.hpp" #include "../io/io.hpp" namespace spi { template struct Spi { using word_t = typename Driver::word_t; static inline void init() { Driver::init(); } static inline word_t transfer(const word_t data) { return Driver::transfer(data); } static inline void select(const bool selectState) { Driver::select(selectState); } }; } // namespace spi