4 #include "SoftwareSerial.h"
6 #define MAX_CAPTURE_SIZE 500
7 #define SERIAL_SPEED 9600
8 #define SERIAL_TIMEOUT 500
9 #define MAX_FREQ 100000
10 #define MAX_FREQ_THRESHOLD 100000
12 #define PIN_COUNT sizeof(PinBitArray)*8
13 #define DESCRIPTION "Arduino-AVR"
16 #define LOG soft_serial
21 namespace logic_analyzer {
24 inline SoftwareSerial soft_serial(RXD2, TXD2);
31 typedef uint8_t PinBitArray;
43 this->start_pin = startPin;
48 uint16_t result = ((uint16_t)PORTB & B00111111) << 8 | PORTD;
49 return result >> start_pin;
AVR specific implementation Logic for the PinReader.
Definition: config_avr.h:40
PinBitArray readAll()
reads all pins and provides the result as bitmask - PORTD:pins 0 to 7 / PORTB: pins 8 to 13
Definition: config_avr.h:47