embedded system library for e-puck  1.0.1
A redesigned API library for the e-puck robot platform
 All Data Structures Files Functions Variables Enumerations Enumerator Modules Pages
el_ir_receiver.h
Go to the documentation of this file.
1 /*
2 
3 embedded system library for e-puck
4 
5 --------------------------------------------------------------------------------
6 
7 code distribution:
8 https://github.com/jianingchen/epucklib
9 
10 online documentation:
11 http://jianingchen.github.io/epucklib/html/
12 
13 --------------------------------------------------------------------------------
14 
15 This file is released under the terms of the MIT license (see "el.h").
16 
17 */
18 
28 #ifndef EL_IR_RECEIVER_H
29 #define EL_IR_RECEIVER_H
30 
31 #include "el_common.h"
32 #include "el_clock.h"
33 #include "el_trigger.h"
34 
40 
41 
47 
48 
57 
58 
75 el_uint8 el_ir_receiver_get_check();
76 
77 
90 
91 
105 el_uint8 el_ir_receiver_get_data();
106 
107 
112 el_uint16 el_ir_receiver_get_counter();
113 
114 
115 
116 /*
117 --------------------------------------------------------------------------------
118 */
119 
120 
121 #ifdef EL_INCLUDE_LIB_INTERNAL_CONTEXT
122 
123 #include "el_clock.h"
124 
125 extern el_bool el_irrc_enabled;
126 extern el_uint8 el_irrc_phase;
127 extern el_mcd el_irrc_timer;
128 
129 void el_init_ir_receiver();
130 void el_routine_ir_receiver_14400hz();
131 void el_irrc_inhibit(int k);
132 
133 #endif /* EL_INCLUDE_LIB_INTERNAL_CONTEXT */
134 
135 
136 #endif /* EL_IR_RECEIVER_H */
void el_disable_ir_receiver()
disable the ir receiver
el_uint8 el_ir_receiver_get_check()
get the check bit in the message while 2 means no message
el_uint16 el_ir_receiver_get_counter()
get the number of messages received since initialization
void el_enable_ir_receiver()
enable the ir receiver
el_uint8 el_ir_receiver_get_address()
get the address field in the message
void el_ir_receiver_reset()
reset the ir receiver to prepare for any incoming message
el_uint8 el_ir_receiver_get_data()
get the data field in the message