D | abstract_driver.h | 8 #include <zephyr/device.h> 11 typedef int (*subsystem_do_this_t)(const struct device *device, int foo, 13 typedef void (*subsystem_do_that_t)(const struct device *device, 21 static inline int subsystem_do_this(const struct device *device, int foo, in subsystem_do_this() argument 26 api = (struct subsystem_api *)device->api; in subsystem_do_this() 27 return api->do_this(device, foo, bar); in subsystem_do_this() 30 static inline void subsystem_do_that(const struct device *device, in subsystem_do_that() argument 35 api = (struct subsystem_api *)device->api; in subsystem_do_that() 36 api->do_that(device, baz); in subsystem_do_that()
|