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

#include <ToneAlarm_Linux.h>

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

Classes

struct  tonealarm_type
 tonealarm_type - bitmask of states we track More...
 

Public Member Functions

bool init (void)
 init - initialised the tone alarm More...
 
void update ()
 update - updates led according to timed_updated. Should be called at 50Hz More...
 
- Public Member Functions inherited from NotifyDevice
virtual ~NotifyDevice ()
 
virtual void handle_led_control (mavlink_message_t *msg)
 
virtual void handle_play_tune (mavlink_message_t *msg)
 

Private Member Functions

bool play_tune (uint8_t tune_number)
 play_tune - play one of the pre-defined tunes More...
 

Private Attributes

bool _initialized = false
 
struct ToneAlarm_Linux::tonealarm_type flags
 

Additional Inherited Members

- Public Attributes inherited from NotifyDevice
const AP_NotifypNotify
 

Detailed Description

Definition at line 22 of file ToneAlarm_Linux.h.

Member Function Documentation

◆ init()

bool ToneAlarm_Linux::init ( void  )
virtual

init - initialised the tone alarm

Implements NotifyDevice.

Definition at line 37 of file ToneAlarm_Linux.cpp.

Here is the call graph for this function:

◆ play_tune()

bool ToneAlarm_Linux::play_tune ( uint8_t  tune_number)
private

play_tune - play one of the pre-defined tunes

Definition at line 54 of file ToneAlarm_Linux.cpp.

Referenced by update().

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

◆ update()

void ToneAlarm_Linux::update ( void  )
virtual

update - updates led according to timed_updated. Should be called at 50Hz

Implements NotifyDevice.

Definition at line 62 of file ToneAlarm_Linux.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _initialized

bool ToneAlarm_Linux::_initialized = false
private

Definition at line 35 of file ToneAlarm_Linux.h.

Referenced by init(), and update().

◆ flags

struct ToneAlarm_Linux::tonealarm_type ToneAlarm_Linux::flags
private

Referenced by init(), and update().


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