You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
555 B
C++

// ZigBeeOperator.h
#ifndef _ZIGBEEOPERATOR_h
#define _ZIGBEEOPERATOR_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include <ExtSRAMInterface.h>
class ZigBeeOperatorClass
{
private:
const uint16_t zigbee_address = 0x6008;
const uint16_t zigbee_read_address = 0x6100;
public:
void Initialization();
public:
void SendCommand(uint8_t* cmd, uint16_t siz = 8);
bool ReciveCommand(uint8_t recv[], uint16_t siz = 8, uint16_t timeout = 0);
};
extern ZigBeeOperatorClass ZigBeeOperator;
#endif