Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
f27e468caThis file is pinned to the selected release. Download the original to open it in your design tool.
#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