Bus master/slave controlling