|
satnogs-rotator-firmware
|
#include <Arduino.h>#include <Wire.h>

Go to the source code of this file.
Classes | |
| class | AS5601 |
| Class that functions for interacting with AS5601 magnetic rotary position sensor. More... | |
Macros | |
| #define | I2C_FREQ 100000 |
| #define | AS5601_ID 0x36 |
| #define | RAW_ANG_HIGH 0x0C |
| #define | RAW_ANG_LOW 0x0D |
| #define | STATUS_REG 0x0B |
| #define | AGC 0x1A |
| #define | MAGNITUDE_HIGH 0x1B |
| #define | MAGNITUDE_LOW 0x1C |
| #define | CONF_HIGH 0x07 |
| #define | CONF_LOW 0x08 |
It is a driver for AS5601 a magnetic rotary position sensor. It uses I2C protocol. The resolution of encoder is 12-bit.
Licensed under the GPLv3
Definition in file as5601.h.
| #define AGC 0x1A |
Definition at line 24 of file as5601.h.
Referenced by AS5601::get_agc().
| #define AS5601_ID 0x36 |
Definition at line 20 of file as5601.h.
Referenced by AS5601::get_agc(), AS5601::get_conf(), AS5601::get_magnitude(), and AS5601::get_pos().
| #define CONF_HIGH 0x07 |
Definition at line 27 of file as5601.h.
Referenced by AS5601::get_conf().
| #define I2C_FREQ 100000 |
Definition at line 18 of file as5601.h.
Referenced by AS5601::Begin(), and tc74::init().
| #define MAGNITUDE_HIGH 0x1B |
Definition at line 25 of file as5601.h.
Referenced by AS5601::get_magnitude().
| #define RAW_ANG_HIGH 0x0C |
Definition at line 21 of file as5601.h.
Referenced by AS5601::get_pos().
| #define STATUS_REG 0x0B |
Definition at line 23 of file as5601.h.
Referenced by AS5601::get_pos().