A magnetic sensor having at least a first and at least a second structure
of soft-magnetic material that are spatially separated and define a first
gap therebetween. The first and second structure of soft-magnetic
material are adapted to form a gap magnetic field pointing in a direction
substantially perpendicular to the elongation of the first gap in the
vicinity of the first gap in response to an external magnetic field.
Additionally, the magnetic sensor comprises at least a first
magnetoresistive layered structure that is positioned in the vicinity of
the first gap including inside the first gap and that is sensitive to the
gap magnetic field.