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

Files

file  buzzer.c
 Driver for the Sensortag Buzzer.
 
file  buzzer.h
 Header file for the Sensortag Buzzer.
 

Functions

void buzzer_init (void)
 Initialise the buzzer.
 
uint8_t buzzer_state (void)
 Retrieve the buzzer state.
 
void buzzer_start (int freq)
 Start the buzzer.
 
void buzzer_stop (void)
 Stop the buzzer.
 

Detailed Description

Function Documentation

◆ buzzer_start()

void buzzer_start ( int freq)

Start the buzzer.

Parameters
freqThe buzzer frequency

Definition at line 64 of file buzzer.c.

References BOARD_IOID_BUZZER, and lpm_register_module().

◆ buzzer_state()

uint8_t buzzer_state ( void )

Retrieve the buzzer state.

Returns
1: on, 0: off

Definition at line 58 of file buzzer.c.