APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AP_WheelEncoder_Backend Class Referenceabstract

#include <WheelEncoder_Backend.h>

Inheritance diagram for AP_WheelEncoder_Backend:
[legend]
Collaboration diagram for AP_WheelEncoder_Backend:
[legend]

Public Member Functions

 AP_WheelEncoder_Backend (AP_WheelEncoder &frontend, uint8_t instance, AP_WheelEncoder::WheelEncoder_State &state)
 
virtual ~AP_WheelEncoder_Backend (void)
 
virtual void update ()=0
 

Protected Member Functions

int8_t get_pin_a () const
 
int8_t get_pin_b () const
 

Protected Attributes

AP_WheelEncoder_frontend
 
AP_WheelEncoder::WheelEncoder_State_state
 

Detailed Description

Definition at line 21 of file WheelEncoder_Backend.h.

Constructor & Destructor Documentation

◆ AP_WheelEncoder_Backend()

AP_WheelEncoder_Backend::AP_WheelEncoder_Backend ( AP_WheelEncoder frontend,
uint8_t  instance,
AP_WheelEncoder::WheelEncoder_State state 
)

Definition at line 22 of file WheelEncoder_Backend.cpp.

◆ ~AP_WheelEncoder_Backend()

virtual AP_WheelEncoder_Backend::~AP_WheelEncoder_Backend ( void  )
inlinevirtual

Definition at line 29 of file WheelEncoder_Backend.h.

Here is the call graph for this function:

Member Function Documentation

◆ get_pin_a()

int8_t AP_WheelEncoder_Backend::get_pin_a ( ) const
protected

Definition at line 29 of file WheelEncoder_Backend.cpp.

Referenced by AP_WheelEncoder_Quadrature::update(), and ~AP_WheelEncoder_Backend().

Here is the caller graph for this function:

◆ get_pin_b()

int8_t AP_WheelEncoder_Backend::get_pin_b ( ) const
protected

Definition at line 38 of file WheelEncoder_Backend.cpp.

Referenced by AP_WheelEncoder_Quadrature::update(), and ~AP_WheelEncoder_Backend().

Here is the caller graph for this function:

◆ update()

virtual void AP_WheelEncoder_Backend::update ( )
pure virtual

Implemented in AP_WheelEncoder_Quadrature.

Referenced by AP_WheelEncoder::update(), and ~AP_WheelEncoder_Backend().

Here is the caller graph for this function:

Member Data Documentation

◆ _frontend

AP_WheelEncoder& AP_WheelEncoder_Backend::_frontend
protected

Definition at line 40 of file WheelEncoder_Backend.h.

Referenced by get_pin_a(), and get_pin_b().

◆ _state

AP_WheelEncoder::WheelEncoder_State& AP_WheelEncoder_Backend::_state
protected

Definition at line 41 of file WheelEncoder_Backend.h.

Referenced by get_pin_a(), get_pin_b(), and AP_WheelEncoder_Quadrature::update().


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