modm API documentation
modm::as5047< SpiMaster, Cs > Class Template Reference

#include <modm/driver/encoder/as5047.hpp>

Inheritance diagram for modm::as5047< SpiMaster, Cs >:
modm::SpiDevice< SpiMaster > modm::NestedResumable< 5 >

Public Typedefs

using Data = (Diaagc) enum class Register modm::IntegerAngle< 14 >
 
using Data = as5047::Data
 

Public Types

enum  Errorfl : uint16_t { Parerr = Bit2, Invcomm = Bit1, Frerr = Bit0 }
 

Public Member Functions

 As5047 (Data &data)
 
modm::ResumableResult< void > read ()
 Read the raw data from the sensor.
 
DatagetData ()
 Get the data object for this sensor.
 
void attachConfigurationHandler (Spi::ConfigurationHandler handler)
 

Protected Member Functions

bool acquireMaster ()
 
bool releaseMaster ()
 
int8_t getResumableDepth () const
 
bool isResumableRunning () const
 
void stopResumable ()
 

Detailed Description

template<typename SpiMaster, typename Cs>
class modm::as5047< SpiMaster, Cs >

Template Parameters
SpiMaster
Cs

Member Function Documentation

template<typename SpiMaster , typename Cs >
modm::as5047< SpiMaster, Cs >::As5047 ( Data data)
Parameters
datapointer to buffer of the internal data of type Data

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