Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
buzzer_driver_api Struct Reference

@driver_ops{Buzzer} More...

#include <buzzer.h>

Data Fields

buzzer_tone_t tone
 @driver_ops_mandatory Play a single tone at freq_hz for duration_ms.
buzzer_set_volume_t set_volume
 @driver_ops_mandatory Set the buzzer volume.
buzzer_beep_t beep
 @driver_ops_mandatory Play the buzzer's default tone for duration_ms.
buzzer_stop_t stop
 @driver_ops_mandatory Stop any tone currently being played.

Detailed Description

@driver_ops{Buzzer}

Field Documentation

◆ beep

buzzer_beep_t buzzer_driver_api::beep

@driver_ops_mandatory Play the buzzer's default tone for duration_ms.

◆ set_volume

buzzer_set_volume_t buzzer_driver_api::set_volume

@driver_ops_mandatory Set the buzzer volume.

◆ stop

buzzer_stop_t buzzer_driver_api::stop

@driver_ops_mandatory Stop any tone currently being played.

◆ tone

buzzer_tone_t buzzer_driver_api::tone

@driver_ops_mandatory Play a single tone at freq_hz for duration_ms.


The documentation for this struct was generated from the following file: