scpi: Add function documentation.
hameg: Use common SCPI functions for discovery.
hameg: Add get_device_type helper function.