The control and readout systems of the CMS pixel barrel detector