Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HCSR04 by
Diff: hcsr04.h
- Revision:
- 7:71da0dbf4400
- Parent:
- 6:4be4fcd0c171
- Child:
- 8:a85d86a02c94
--- a/hcsr04.h Sat Mar 30 18:52:13 2013 +0000
+++ b/hcsr04.h Sat Mar 30 18:55:03 2013 +0000
@@ -26,7 +26,7 @@
#include "mbed.h"
-/** Distance Measure Class(es)
+/** HCSR04 Class(es)
*/
class HCSR04
@@ -43,11 +43,11 @@
*/
unsigned int get_dist_cm(void);
/** Return the pulse duration equal to sonic waves travelling to obstacle and back to receiver.
- * @param pulse duration in microseconds.
- */
+ * @param pulse duration in microseconds.
+ */
unsigned int get_pulse_us(void);
/** Generates the trigger pulse of 10us on the trigger PIN.
- */
+ */
void start(void );
void isr_rise(void);
void isr_fall(void);
