aboutsummaryrefslogtreecommitdiff
path: root/platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h')
-rw-r--r--platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h b/platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h
new file mode 100644
index 0000000..66ba534
--- /dev/null
+++ b/platform/atm2/ATM22xx-x1x/examples/HID_remote/src/non_bt/rc_ir.h
@@ -0,0 +1,59 @@
+/**
+ *******************************************************************************
+ *
+ * @file rc_ir.h
+ *
+ * @brief IR application part
+ *
+ * Copyright (C) Atmosic 2020-2021
+ *
+ *******************************************************************************
+ */
+#pragma once
+
+/**
+ * @brief IR initialization.
+ */
+void rc_ir_init(void);
+
+/**
+ *******************************************************************************
+ * @brief Send IR code.
+ * @param[in] address NEC address
+ * @param[in] cmd NEC command.
+ * @param[in] delay_ds Delay time to send.
+ *******************************************************************************
+ */
+void rc_ir_send(uint32_t address, uint32_t cmd, uint32_t delay_cs);
+
+/**
+ * @brief Stop repeat
+ */
+void rc_ir_repeat_end(void);
+
+#ifdef CFG_ATVRC_UNI_IR
+/**
+ *******************************************************************************
+ * @brief Check universal IR key
+ * @param[in] atv_keycode Android TV keycode
+ *******************************************************************************
+ */
+bool rc_ir_check_uni_key(uint16_t atv_keycode);
+
+/**
+ *******************************************************************************
+ * @brief Send Universal IR code data
+ * @param[in] key Universal IR key id
+ * @param[in] code Pointer of IR code data
+ * @param[in] size IR code data size
+ *******************************************************************************
+ */
+void rc_ir_send_uni_code(uint16_t key, uint8_t const *code, uint16_t size);
+
+/**
+ *******************************************************************************
+ * @brief Clear all Universal IR code data
+ *******************************************************************************
+ */
+void rc_ir_clear_uni_codes(void);
+#endif