Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
AS5048B Class Reference

14-bit rotary position sensor More...

#include <AS5048b.h>

Inherits I2C::Device.

Collaboration diagram for AS5048B:
[legend]

Public Member Functions

 AS5048B (Sink< I2C::Request > &bus, bool A0, bool A1)
 initialize the sensor.
 
void measure ()
 start async read of angle
 
void callback (const I2C::Request &rq) override
 callback.
 
double get ()
 Returns the angle in radians.
 
void reset ()
 Resets the angles.
 

Detailed Description

14-bit rotary position sensor

Constructor & Destructor Documentation

◆ AS5048B()

AS5048B::AS5048B ( Sink< I2C::Request > &  bus,
bool  A0,
bool  A1 
)
inline

initialize the sensor.

A0 & A1 change its I2C address, see datasheet for details

Member Function Documentation

◆ callback()

void AS5048B::callback ( const I2C::Request req)
inlineoverridevirtual

callback.

is called as soon as transmission completed successfully

Implements I2C::Device.


The documentation for this class was generated from the following file: