APM:Libraries
|
#include <ToneAlarm.h>
Public Member Functions | |
ToneAlarm () | |
void | set_tune (uint8_t tone) |
virtual bool | init () |
virtual void | stop () |
virtual bool | play () |
bool | is_tune_comp () |
bool | set_note () |
bool | init_tune () |
Protected Attributes | |
bool | tune_comp |
bool | tune_changed |
uint8_t | default_oct |
uint8_t | default_dur |
uint16_t | bpm |
uint16_t | wholenote |
uint16_t | cur_note |
uint16_t | duration |
int32_t | prev_tune_num |
uint32_t | prev_time |
int8_t | tune_num |
uint8_t | tune_pos |
Static Protected Attributes | |
static const char * | tune [TONE_NUMBER_OF_TUNES] |
static bool | tune_repeat [TONE_NUMBER_OF_TUNES] = {false,true,false,false,false,false,true,true,false,false,false} |
Private Attributes | |
int32_t | period_fd |
int32_t | duty_fd |
int32_t | run_fd |
Definition at line 113 of file ToneAlarm.h.
ToneAlarm::ToneAlarm | ( | ) |
|
virtual |
Reimplemented in Linux::ToneAlarm_Disco.
Definition at line 53 of file ToneAlarm.cpp.
bool ToneAlarm::init_tune | ( | ) |
Definition at line 202 of file ToneAlarm.cpp.
Referenced by Linux::Util::_toneAlarm_timer_tick().
bool ToneAlarm::is_tune_comp | ( | ) |
Definition at line 72 of file ToneAlarm.cpp.
Referenced by Linux::Util::_toneAlarm_timer_tick().
|
virtual |
Reimplemented in Linux::ToneAlarm_Disco.
Definition at line 82 of file ToneAlarm.cpp.
bool ToneAlarm::set_note | ( | ) |
Definition at line 113 of file ToneAlarm.cpp.
Referenced by Linux::Util::_toneAlarm_timer_tick().
void ToneAlarm::set_tune | ( | uint8_t | tone | ) |
Definition at line 67 of file ToneAlarm.cpp.
Referenced by Linux::Util::toneAlarm_set_tune().
|
virtual |
Reimplemented in Linux::ToneAlarm_Disco.
Definition at line 77 of file ToneAlarm.cpp.
Referenced by play().
|
protected |
Definition at line 131 of file ToneAlarm.h.
Referenced by init_tune().
|
protected |
Definition at line 133 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::play(), play(), and set_note().
|
protected |
Definition at line 130 of file ToneAlarm.h.
Referenced by init_tune().
|
protected |
Definition at line 129 of file ToneAlarm.h.
Referenced by init_tune(), and set_note().
|
protected |
Definition at line 134 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::play(), play(), and set_note().
|
private |
Definition at line 142 of file ToneAlarm.h.
Referenced by init(), play(), and ToneAlarm().
|
private |
Definition at line 141 of file ToneAlarm.h.
Referenced by init(), play(), and ToneAlarm().
|
protected |
Definition at line 136 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::play(), and play().
|
protected |
Definition at line 135 of file ToneAlarm.h.
Referenced by init_tune(), Linux::ToneAlarm_Disco::play(), and play().
|
private |
Definition at line 143 of file ToneAlarm.h.
Referenced by init(), play(), stop(), and ToneAlarm().
|
staticprotected |
Definition at line 126 of file ToneAlarm.h.
Referenced by init_tune(), Linux::ToneAlarm_Disco::play(), play(), and set_note().
|
protected |
Definition at line 128 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::play(), play(), and set_note().
|
protected |
Definition at line 125 of file ToneAlarm.h.
Referenced by init_tune(), is_tune_comp(), Linux::ToneAlarm_Disco::play(), and play().
|
protected |
Definition at line 137 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::init(), init(), init_tune(), Linux::ToneAlarm_Disco::play(), play(), set_note(), set_tune(), ToneAlarm(), and Linux::ToneAlarm_Disco::ToneAlarm_Disco().
|
protected |
Definition at line 138 of file ToneAlarm.h.
Referenced by init_tune(), Linux::ToneAlarm_Disco::play(), play(), set_note(), ToneAlarm(), and Linux::ToneAlarm_Disco::ToneAlarm_Disco().
|
staticprotected |
Definition at line 127 of file ToneAlarm.h.
Referenced by Linux::ToneAlarm_Disco::play(), and play().
|
protected |
Definition at line 132 of file ToneAlarm.h.
Referenced by init_tune(), and set_note().