Build the device-info JSON returned by the flexIoDeviceInfo RPC.
Shape:
{
"bus": "FLEX_IO",
"instance": 0,
"driverName": "I2S_SPI", // whatever IChannelDriver::getName() returns
"silicon": "ESP32",
"idfVersion": "5.5.4",
"supportedByBuild": true // false when no BusTraits<FLEX_IO, N> for this silicon
}
Definition at line 127 of file AutoResearchFlexIo.h.
127 {
129 info.
set(
"bus",
"FLEX_IO");
130 info.
set(
"instance",
static_cast<int64_t
>(instance));
131
132
133
135
136
140 }
141 info.
set(
"registeredDriverNames", names_arr);
144 info.
set(
"supportedByBuild",
146 return info;
147}
void set(const fl::string &key, const json &value) FL_NO_EXCEPT
void push_back(const json &value) FL_NO_EXCEPT
static json object() FL_NO_EXCEPT
static json array() FL_NO_EXCEPT
static string from_literal(const char *literal) FL_NO_EXCEPT
fl::vector< fl::string > registeredDriverNames() FL_NO_EXCEPT
Return the list of registered driver names.
fl::string idfVersion() FL_NO_EXCEPT
ESP-IDF version string, or "n/a" on non-ESP32 targets.
fl::string firstDriverName() FL_NO_EXCEPT
Convenience — first non-empty driver name, or "<none>" if empty.
fl::string siliconName() FL_NO_EXCEPT
Platform identification string derived from build-time macros.
References fl::json::array(), firstDriverName(), FL_NO_EXCEPT, fl::string::from_literal(), idfVersion(), fl::json::object(), fl::json::push_back(), registeredDriverNames(), fl::json::set(), and siliconName().