MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / driver_is_compatible

Function driver_is_compatible

TactilityKernel/source/driver.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool driver_is_compatible(Driver* driver, const char* compatible) {
99 if (compatible == nullptr || driver->compatible == nullptr) {
100 return false;
101 }
102 const char** compatible_iterator = driver->compatible;
103 while (*compatible_iterator != nullptr) {
104 if (strcmp(*compatible_iterator, compatible) == 0) {
105 return true;
106 }
107 compatible_iterator++;
108 }
109 return false;
110}
111
112Driver* driver_find_compatible(const char* compatible) {
113 ledger.lock();

Callers 6

DriverTest.cppFile · 0.85
esp32_sdcard_get_cardFunction · 0.85
device_is_compatibleFunction · 0.85
driver_find_compatibleFunction · 0.85
getCardFunction · 0.85
createIoHandleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected