MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
ArduinoBuzzer Class Reference
Inheritance diagram for ArduinoBuzzer:
Inheritance graph
Collaboration diagram for ArduinoBuzzer:
Collaboration graph

Public Member Functions

 ArduinoBuzzer (uint8_t id, uint8_t pin)
 
int8_t setup () override
 
int8_t loop () override
 
void _buzzer (uint16_t frequency, uint32_t duration, bool block) override
 
 SUBSYSTEM_NAME ("Buzzer")
 
- Public Member Functions inherited from BuzzerInterface
virtual SUBSYSTEM_NO_MESSAGE_HANDLER void _buzzer (uint16_t frequency, uint32_t duration, bool block)=0
 
 Subsystem (uint8_t id)
 
- Public Member Functions inherited from Subsystem
virtual const char * get_name ()=0
 
virtual int8_t setup ()=0
 
virtual int8_t loop ()=0
 
uint8_t get_id () const
 
int8_t get_status () const
 
int8_t self_test () const
 
bool add_subscriber (Subsystem *subscriber)
 
 Subsystem (uint8_t id)
 

Public Attributes

 SUBSYSTEM_NO_MESSAGE_HANDLER
 

Additional Inherited Members

- Protected Member Functions inherited from Subsystem
void log (const char fmt[],...)
 
virtual void on_message (SystemMessage *msg)=0
 
void publish (SystemMessage *msg)
 
- Static Protected Member Functions inherited from Subsystem
static void buzzer (uint16_t frequency, uint32_t duration, bool block=false)
 
- Protected Attributes inherited from Subsystem
int8_t status = 0
 
int8_t self_test_result = -1
 

Member Function Documentation

◆ _buzzer()

void ArduinoBuzzer::_buzzer ( uint16_t  frequency,
uint32_t  duration,
bool  block 
)
overridevirtual

Implements BuzzerInterface.

◆ loop()

int8_t ArduinoBuzzer::loop ( )
overridevirtual

Implements Subsystem.

◆ setup()

int8_t ArduinoBuzzer::setup ( )
overridevirtual

Implements Subsystem.


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