MiLightRadioInterface.h 510 B

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