Added convenience macros for device type detection