final project  1
ping.h
Go to the documentation of this file.
1 
10 #ifndef PING_H_
11 #define PING_H_
12 
13 
14 void ping_init();
15 void send_pulse();
16 int ping_read();
17 double time2dist(int time);
18 void clock_timer_init3(void);
19 void TIMER3B_Handler(void);
20 
21 
22 #endif /* PING_H_ */
void clock_timer_init3(void)
initializes a clock timer
Definition: ping.c:123
void TIMER3B_Handler(void)
handles interrupts
Definition: ping.c:32
void send_pulse()
sends a pulse to the ping sensor
Definition: ping.c:69
int ping_read()
reads the response pulse from the ping sensor
Definition: ping.c:85
double time2dist(int time)
convert a sonar pulse width time to a distance
Definition: ping.c:112
void ping_init()
initializes ping sensor
Definition: ping.c:55