rc5_encode.h 649 B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. \file rc5_encode.h
  3. \brief the header file of rc5 infrared encoder
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. #ifndef RC5_ENCODE_H
  10. #define RC5_ENCODE_H
  11. #include "gd32f3x0.h"
  12. /* definition of the rc5 control bit value */
  13. typedef enum
  14. {
  15. RC5_CTRL_RESET = ((uint16_t)0),
  16. RC5_CTRL_SET = ((uint16_t)0x0800)
  17. }rc5_ctrl_enum;
  18. void menu_rc5_encode_func(void);
  19. void rc5_encode_init(void);
  20. void rc5_encode_send_frame(uint8_t rc5_address, uint8_t rc5_instruction, rc5_ctrl_enum rc5_ctrl);
  21. void rc5_encode_signal_generate(uint32_t rc5_manchester_frame_format);
  22. #endif /*RC5_ENCODE_H */