robobuggy / arduino / InterruptSingleChannel / receiver.h @ c5d6b0e8
History | View | Annotate | Download (444 Bytes)
1 |
/**
|
---|---|
2 |
* @file receiver.h
|
3 |
* @brief Headers for Receiver
|
4 |
* DOGE mooooooo
|
5 |
* doge COW!
|
6 |
*/
|
7 |
|
8 |
#ifndef _RECEIVER_H_
|
9 |
#define _RECEIVER_H_
|
10 |
|
11 |
#ifdef __cplusplus
|
12 |
extern "C"{ |
13 |
#endif
|
14 |
|
15 |
int receiver_init();
|
16 |
|
17 |
void receiver_on_interrupt(int int_pin); |
18 |
|
19 |
// Gets the angle without a dead zone
|
20 |
// Returns a value between 0 and 255, with no
|
21 |
// movement being 128.
|
22 |
|
23 |
#ifdef __cplusplus
|
24 |
} // extern "C"
|
25 |
#endif /* __cplusplus */ |
26 |
|
27 |
#endif /* _RECEIVER_H_ */ |
28 |
|