Characterization of the magnetic field of the Herbig Be star HD 200775