ir_hasher.h
Go to the documentation of this file.
1 #ifndef IR_HASHER_H
2 #define IR_HASHER_H
3 
4 #include <stdint.h>
5 
6 typedef void (*Pi_Hasher_CB_t)(uint32_t);
7 
8 struct _Pi_Hasher_s;
9 
10 typedef struct _Pi_Hasher_s Pi_Hasher_t;
11 
13  /*
14  This function establishes an IR hasher on the gpio.
15 
16  A gap of timeout milliseconds without a new bit indicates
17  the end of a code.
18 
19  When code end is detected the callback function is called
20  with the code hash.
21 
22  A pointer to a private data type is returned. This should be passed
23  to Pi_Hasher_cancel if the hasher is to be cancelled.
24  */
25 
26 
27 void Pi_Hasher_cancel(Pi_Hasher_t *hasher);
28  /*
29  This function releases the resources used by the hasher.
30  */
31 
32 
33 #endif
Pi_Hasher_t * Pi_Hasher(int gpio, Pi_Hasher_CB_t callback, int timeout)
Definition: ir_hasher.c:107
void callback(uint32_t hash)
void(* Pi_Hasher_CB_t)(uint32_t)
Definition: ir_hasher.h:6
void Pi_Hasher_cancel(Pi_Hasher_t *hasher)
Definition: ir_hasher.c:125


cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:57