esp32_ethernet_milight_hub/lib/Radio/MiLightRadio.h
2021-01-15 22:49:01 +01:00

30 lines
504 B
C++

#ifdef ARDUINO
#include "Arduino.h"
#else
#include <stdint.h>
#include <stdlib.h>
#endif
#include <MiLightRadioConfig.h>
#ifndef _MILIGHT_RADIO_H_
#define _MILIGHT_RADIO_H_
class MiLightRadio {
public:
virtual int begin();
virtual bool available();
virtual int read(uint8_t frame[], size_t &frame_length);
virtual int write(uint8_t frame[], size_t frame_length);
virtual int resend();
virtual int configure();
virtual const MiLightRadioConfig& config();
};
#endif