Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
| 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] |