Choosing the correct HAL function for device access