mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +03:00 
			
		
		
		
	buzzer: documentation fixes
Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
		| @@ -44,15 +44,17 @@ namespace upm { | |||||||
| /** | /** | ||||||
|  * @brief C++ API for Buzzer component |  * @brief C++ API for Buzzer component | ||||||
|  * |  * | ||||||
|  * This file defines the Buzzer C++ interface for libbuzzer |  * This file defines the Buzzer C++ interface for libbuzzer. | ||||||
|  |  * This sensor can make different tones when connected to | ||||||
|  |  * a pin capable of analog pulse-width modulation. | ||||||
|  * |  * | ||||||
|  * @ingroup buzzer |  * @ingroup buzzer pwm | ||||||
|  * @snippet buzzer-sound.cxx Interesting |  * @snippet buzzer-sound.cxx Interesting | ||||||
|  */ |  */ | ||||||
| class Buzzer { | class Buzzer { | ||||||
|     public: |     public: | ||||||
|         /** |         /** | ||||||
|          * Instanciates a Buzzer object |          * Instantiates a Buzzer object | ||||||
|          * |          * | ||||||
|          * @param pinNumber Buzzer pin number |          * @param pinNumber Buzzer pin number | ||||||
|          */ |          */ | ||||||
| @@ -64,15 +66,19 @@ class Buzzer { | |||||||
|         ~Buzzer (); |         ~Buzzer (); | ||||||
|  |  | ||||||
|         /** |         /** | ||||||
|          * Play chords. |          * Play a tone for a certain amount of time. | ||||||
|          * |          * | ||||||
|          * @param note chords (DO, RE, ME, etc...) |          * @param note the note to be played (DO, RE, MI, etc...) | ||||||
|          * @param delay time in microsec for playing the sound |          * @param delay time in microsec for playing the sound | ||||||
|  |          * | ||||||
|  |          * @return the note played | ||||||
|          */ |          */ | ||||||
|         int playSound (int note, int delay); |         int playSound (int note, int delay); | ||||||
|  |  | ||||||
|         /** |         /** | ||||||
|          * Return name of the component |          * Return name of the component | ||||||
|  |          * | ||||||
|  |          * @return name of the sensor | ||||||
|          */ |          */ | ||||||
|         std::string name() |         std::string name() | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sarah Knepper
					Sarah Knepper