Determining type of device


Johannes Hutter
 

Hello everyone,


is there a zephyr-way in determining which type a device is, after getting a reference to it through device_get_binding?

Since a gpio device has the same signature as a flash for example it's not obvious for me how to make sure that the right device pointer is passed in a higer-level application.


Thanks in advance,

Joe

--
Johannes Hutter ¦ Embedded Software Developer
Mail: johannes@proglove.de


Workaround GmbH (ProGlove)
Friedenstr. 4 | 81671 München

Managing Director: Thomas Kirchner
HRB: 216605 | AG München
USt.-IdNr.: DE298859320

Join users@lists.zephyrproject.org to automatically receive all group messages.