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

#include <AP_Button.h>

Collaboration diagram for AP_Button:
[legend]

Public Member Functions

 AP_Button (void)
 
void update (void)
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Member Functions

void timer_update (void)
 
uint8_t get_mask (void)
 
void send_report (void)
 
void setup_pins ()
 

Private Attributes

AP_Int8 enable
 
AP_Int8 pin [AP_BUTTON_NUM_PINS]
 
AP_Int16 report_send_time
 
uint8_t last_mask
 
uint64_t last_change_time_ms
 
uint32_t last_report_ms
 
bool initialised:1
 

Detailed Description

Definition at line 25 of file AP_Button.h.

Constructor & Destructor Documentation

◆ AP_Button()

AP_Button::AP_Button ( void  )

Definition at line 72 of file AP_Button.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ get_mask()

uint8_t AP_Button::get_mask ( void  )
private

Definition at line 113 of file AP_Button.cpp.

Referenced by timer_update(), and update().

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

◆ send_report()

void AP_Button::send_report ( void  )
private

Definition at line 143 of file AP_Button.cpp.

Referenced by update().

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

◆ setup_pins()

void AP_Button::setup_pins ( void  )
private

Definition at line 166 of file AP_Button.cpp.

Referenced by update().

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

◆ timer_update()

void AP_Button::timer_update ( void  )
private

Definition at line 128 of file AP_Button.cpp.

Referenced by update().

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

◆ update()

void AP_Button::update ( void  )

Definition at line 80 of file AP_Button.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ enable

AP_Int8 AP_Button::enable
private

Definition at line 36 of file AP_Button.h.

Referenced by timer_update(), and update().

◆ initialised

bool AP_Button::initialised
private

Definition at line 52 of file AP_Button.h.

Referenced by update().

◆ last_change_time_ms

uint64_t AP_Button::last_change_time_ms
private

Definition at line 46 of file AP_Button.h.

Referenced by send_report(), timer_update(), and update().

◆ last_mask

uint8_t AP_Button::last_mask
private

Definition at line 43 of file AP_Button.h.

Referenced by send_report(), timer_update(), and update().

◆ last_report_ms

uint32_t AP_Button::last_report_ms
private

Definition at line 49 of file AP_Button.h.

Referenced by update().

◆ pin

AP_Int8 AP_Button::pin[AP_BUTTON_NUM_PINS]
private

Definition at line 37 of file AP_Button.h.

Referenced by get_mask(), and setup_pins().

◆ report_send_time

AP_Int16 AP_Button::report_send_time
private

Definition at line 40 of file AP_Button.h.

Referenced by update().

◆ var_info

const AP_Param::GroupInfo AP_Button::var_info
static

Definition at line 30 of file AP_Button.h.

Referenced by AP_Button().


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