diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-12-09 23:15:14 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-12-09 23:15:14 -0700 |
commit | 5f1763ec87503527583cb1a7c6deb73604db0dfc (patch) | |
tree | 0892ddf94b614db2d879f7bc993961af5ac25bb2 /include/drv/ir/control.h | |
parent | a5923b21e48fcfe660c1e7d586fe0c6a5b79e421 (diff) | |
download | stm32l4-5f1763ec87503527583cb1a7c6deb73604db0dfc.tar.gz stm32l4-5f1763ec87503527583cb1a7c6deb73604db0dfc.tar.bz2 stm32l4-5f1763ec87503527583cb1a7c6deb73604db0dfc.zip |
Can read from the A/C remote control!test_ir
Diffstat (limited to 'include/drv/ir/control.h')
-rw-r--r-- | include/drv/ir/control.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/drv/ir/control.h b/include/drv/ir/control.h new file mode 100644 index 0000000..11e3604 --- /dev/null +++ b/include/drv/ir/control.h @@ -0,0 +1,14 @@ +#ifndef _DRV_IR_CONTROL_H_ +#define _DRV_IR_CONTROL_H_ + +#include "kern/common.h" + +#define add_ir_code_callback(code, fn, closure) \ + add_ir_code_callback_(code, (void (*)(uint32_t, void*))(fn), closure) + +void add_ir_code_callback_( + uint32_t code, void (*fn)(uint32_t code, void* closure), void* closure); + +void enable_ir_control(); + +#endif /* _DRV_IR_CONTROL_H_ */ |