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