hal/arduino/ArduinoTellstickDuo/buffer.h
Daniel Collin e269faec13 Implemented a clone of the Tellstick Duo firmware that will wotrk on a Arduino.
So far only supports the Archtech Self Learning protocol.


Former-commit-id: 705f787fc30459a9d55dc571632dc4d01e7198f0
2016-01-22 17:49:25 +01:00

15 lines
418 B
C

#ifndef BUFFER_H
#define BUFFER_H
#include "Arduino.h"
uint16_t calculateBufferPointerDistance(uint8_t* bufStartP, uint8_t* bufEndP);
uint8_t* getNextBufferPointer(uint8_t* p);
void stepBufferPointer(uint8_t** p);
extern uint8_t RF_rxBuffer[512]; //must have and even number of elements
extern uint8_t* RF_rxBufferStartP;
extern uint8_t* RF_rxBufferEndP;
extern volatile uint8_t* bufferWriteP;
#endif //BUFFER_H