decoder.h 573 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-08-26 balanceTWK the first version
  9. */
  10. #ifndef __DECODER_H__
  11. #define __DECODER_H__
  12. #include <rtthread.h>
  13. struct nec_data_struct
  14. {
  15. rt_uint8_t addr;
  16. rt_uint8_t key;
  17. rt_uint8_t repeat;
  18. };
  19. struct infrared_decoder_data
  20. {
  21. union
  22. {
  23. struct nec_data_struct nec; /* Temperature. unit: dCelsius */
  24. }data;
  25. };
  26. #endif