Contiki-NG
Loading...
Searching...
No Matches

Files

 
 

Functions

bool buzzer_init (void)
 Initialise the buzzer.
 
bool buzzer_running (void)
 Retrieve the buzzer state.
 
bool buzzer_start (uint32_t freq)
 Start the buzzer.
 
void buzzer_stop (void)
 Stop the buzzer.
 

Detailed Description

Function Documentation

◆ buzzer_running()

bool buzzer_running ( void )

Retrieve the buzzer state.

Returns
Running status of the buzzer.
Return values
0Buzzer is off
1Buzzer is on

Definition at line 100 of file buzzer.c.

◆ buzzer_start()

bool buzzer_start ( uint32_t freq)

Start the buzzer.

Parameters
freqThe buzzer frequency in Hz.

Definition at line 106 of file buzzer.c.