Library for SPI communication with the AMS AS5048 rotary sensor

Dependents:   heros_leg_readout_torque_addition heros_leg_readout_torque_addition heros_leg_readout_torque_addition_V3

Auto generated API documentation and code listings for AS5048

Classes

As5048 Interfacing with the AMS AS5048A magnetic rotary sensor using SPI protocol AS5048 uses 16-bit transfer; We use two 8-bit transfers for compatibility with 8-bit SPI master devices SPI protocol: Mode = 1: clock polarity = 0 --> clock pulse is high clock phase = 1 --> sample on falling edge of clock pulse Code was succesfully tested on the FRDM KL25Z and K22F

Code

as5048.h [code]