MiLightRadio.h 504 B

12345678910111213141516171819202122232425262728293031
  1. #ifdef ARDUINO
  2. #include "Arduino.h"
  3. #else
  4. #include <stdint.h>
  5. #include <stdlib.h>
  6. #endif
  7. #include <MiLightRadioConfig.h>
  8. #ifndef _MILIGHT_RADIO_H_
  9. #define _MILIGHT_RADIO_H_
  10. class MiLightRadio {
  11. public:
  12. virtual int begin();
  13. virtual bool available();
  14. virtual int read(uint8_t frame[], size_t &frame_length);
  15. virtual int write(uint8_t frame[], size_t frame_length);
  16. virtual int resend();
  17. virtual int configure();
  18. virtual const MiLightRadioConfig& config();
  19. };
  20. #endif