# include <inttypes.h> # include <stdbool.h> # include <avr/io.h> # include "SDI12.h" // 0.1 header file for this library # define _BUFFER_SIZE 64 // 0.2 max RX buffer size # define DISABLED 0 // 0.3 value for DISABLED state # define ENABLED 1 // 0.4 value for ENABLED state # define HOLDING 2 // 0.5 value for DISABLED state # define TRANSMITTING 3 // 0.6 value for TRANSMITTING state # define LISTENING 4 // 0.7 value for LISTENING state # define SPACING 830 // 0.8 bit timing in microseconds # define PHIGH PORTB7; # define PLOW PORTB7; # define INMODE PORTB7; # define OUTMODE PORTB7; //SDI12 *SDI12__activeObject = NULL; // 0.9 pointer to active SDI12 object uint8_t _dataPin; // 0.10 reference to the data pin bool _buffe...