Update AS5040.h

Functional header file with error structure