Create AS5045.cpp

Initial version of AS5045 code, based on 5040 code with names changed and two bits added to mask and for loop.