pub type device_handle_t = i16;
Expand description
@brief Type used to represent a “handle” for a device.
Every @ref device has an associated handle. You can get a pointer to a @ref device from its handle and vice versa, but the handle uses less space than a pointer. The device.h API mainly uses handles to store lists of multiple devices in a compact way.
The extreme values and zero have special significance. Negative values identify functionality that does not correspond to a Zephyr device, such as the system clock or a SYS_INIT() function.
@see device_handle_get() @see device_from_handle()