// // Created by erki on 4.06.22. // #ifndef SKL_TUNNEL_RADIO_HW_INSTANCE_HPP #define SKL_TUNNEL_RADIO_HW_INSTANCE_HPP #include namespace radio { struct HwInstance { static HwInstance* create_instance(); void irq_handler(); uint8_t register_read(uint8_t address); void register_write(uint8_t address, const uint8_t value); private: spi_m_sync_descriptor* m_spi = nullptr; io_descriptor* m_spi_io = nullptr; HwInstance(); }; } #endif //SKL_TUNNEL_RADIO_HW_INSTANCE_HPP