What is the difference between a drill with a hammer function and an impact drill?

The hammer function makes the tool make hits (like a hammer) without rotating. The impact drill means it will make hits and rotate at the same time. Usually you would use a masonry drill bit withe the impact drill function and a chisel for the hammer function.