/* * peripherals_serial.hpp * * Created on: Mar 22, 2021 * Author: erki */ #ifndef SKULLC_PERIPHERALS_SERIAL_HPP_ #define SKULLC_PERIPHERALS_SERIAL_HPP_ #include namespace Peripherals { template struct SerialPeripheral { void transmit(char* data, const std::uint32_t data_length) { tx_function(handle, data, data_length); } void receive(char* output, const std::uint32_t data_length) { rx_function(handle, data, data_length); } }; } #endif /* SKULLC_PERIPHERALS_SERIAL_HPP_ */