Optical link based readout system for Medipix2 quad X-ray detector