satnogs-rotator-firmware
Loading...
Searching...
No Matches
as5601.h File Reference
#include <Arduino.h>
#include <Wire.h>
Include dependency graph for as5601.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

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.

Macro Definition Documentation

◆ AGC

#define AGC   0x1A

Definition at line 24 of file as5601.h.

Referenced by AS5601::get_agc().

◆ AS5601_ID

#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().

◆ CONF_HIGH

#define CONF_HIGH   0x07

Definition at line 27 of file as5601.h.

Referenced by AS5601::get_conf().

◆ CONF_LOW

#define CONF_LOW   0x08

Definition at line 28 of file as5601.h.

◆ I2C_FREQ

#define I2C_FREQ   100000

Definition at line 18 of file as5601.h.

Referenced by AS5601::Begin(), and tc74::init().

◆ MAGNITUDE_HIGH

#define MAGNITUDE_HIGH   0x1B

Definition at line 25 of file as5601.h.

Referenced by AS5601::get_magnitude().

◆ MAGNITUDE_LOW

#define MAGNITUDE_LOW   0x1C

Definition at line 26 of file as5601.h.

◆ RAW_ANG_HIGH

#define RAW_ANG_HIGH   0x0C

Definition at line 21 of file as5601.h.

Referenced by AS5601::get_pos().

◆ RAW_ANG_LOW

#define RAW_ANG_LOW   0x0D

Definition at line 22 of file as5601.h.

◆ STATUS_REG

#define STATUS_REG   0x0B

Definition at line 23 of file as5601.h.

Referenced by AS5601::get_pos().