Library for writing bus drivers with a unified interface