APM:Libraries
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
AP_RPM_Pin Class Reference

#include <RPM_Pin.h>

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

Classes

struct  IrqState
 

Public Member Functions

 AP_RPM_Pin (AP_RPM &ranger, uint8_t instance, AP_RPM::RPM_State &_state)
 
void update (void)
 
- Public Member Functions inherited from AP_RPM_Backend
 AP_RPM_Backend (AP_RPM &_ap_rpm, uint8_t instance, AP_RPM::RPM_State &_state)
 
virtual ~AP_RPM_Backend (void)
 
int8_t get_pin (void) const
 

Static Private Member Functions

static void irq_handler (uint8_t instance)
 
static int irq_handler0 (int irq, void *context)
 
static int irq_handler1 (int irq, void *context)
 

Private Attributes

ModeFilterFloat_Size5 signal_quality_filter {3}
 
uint8_t last_pin = -1
 
uint32_t last_gpio
 

Static Private Attributes

static struct IrqState irq_state [RPM_MAX_INSTANCES]
 

Additional Inherited Members

- Protected Attributes inherited from AP_RPM_Backend
AP_RPMap_rpm
 
AP_RPM::RPM_Statestate
 

Detailed Description

Definition at line 23 of file RPM_Pin.h.

Constructor & Destructor Documentation

◆ AP_RPM_Pin()

AP_RPM_Pin::AP_RPM_Pin ( AP_RPM ranger,
uint8_t  instance,
AP_RPM::RPM_State _state 
)

Definition at line 32 of file RPM_Pin.cpp.

Member Function Documentation

◆ irq_handler()

void AP_RPM_Pin::irq_handler ( uint8_t  instance)
staticprivate

Definition at line 40 of file RPM_Pin.cpp.

Referenced by irq_handler0(), and irq_handler1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ irq_handler0()

int AP_RPM_Pin::irq_handler0 ( int  irq,
void *  context 
)
staticprivate

Definition at line 58 of file RPM_Pin.cpp.

Referenced by irq_handler1(), and update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ irq_handler1()

int AP_RPM_Pin::irq_handler1 ( int  irq,
void *  context 
)
staticprivate

Definition at line 67 of file RPM_Pin.cpp.

Referenced by update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void AP_RPM_Pin::update ( void  )
virtual

Implements AP_RPM_Backend.

Definition at line 90 of file RPM_Pin.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ irq_state

AP_RPM_Pin::IrqState AP_RPM_Pin::irq_state
staticprivate

Definition at line 50 of file RPM_Pin.h.

Referenced by irq_handler(), and update().

◆ last_gpio

uint32_t AP_RPM_Pin::last_gpio
private

Definition at line 44 of file RPM_Pin.h.

Referenced by update().

◆ last_pin

uint8_t AP_RPM_Pin::last_pin = -1
private

Definition at line 43 of file RPM_Pin.h.

Referenced by update().

◆ signal_quality_filter

ModeFilterFloat_Size5 AP_RPM_Pin::signal_quality_filter {3}
private

Definition at line 42 of file RPM_Pin.h.

Referenced by update().


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