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

Function grove_set_mode

TactilityKernel/source/drivers/grove.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7extern "C" {
8
9error_t grove_set_mode(struct Device* device, enum GroveMode mode) {
10 const auto* driver = device_get_driver(device);
11 return GROVE_DRIVER_API(driver)->set_mode(device, mode);
12}
13
14error_t grove_get_mode(struct Device* device, enum GroveMode* mode) {
15 const auto* driver = device_get_driver(device);

Callers 1

onModeChangedMethod · 0.85

Calls 1

device_get_driverFunction · 0.85

Tested by

no test coverage detected