Loading files
#include "Hal/BusDevice.hpp"
namespace Espfc::Hal {
const char** BusDevice::getNames()
{
static const char* busDevChoices[] = {"NONE", "AUTO", "I2C", "SPI", "SLV", nullptr};
return busDevChoices;
}
const char* BusDevice::getName(BusType type)
{
if (type >= BUS_MAX) return "?";
return getNames()[type];
}
} // namespace Espfc::Hal
b851007bdThis file is pinned to the selected release. Download the original to open it in your design tool.