logic-analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
logic_analyzer::PinReader Class Reference

Arduino Mega specific implementation Logic for the PinReader. The Mega GPIO numbers are not mapped to PORTB/PORTD like on the Uno/Nano: we read the port register that contains the start pin. Supported start pins with a fast register read: 22-29 (PINA), A0-A7 (PINF) and A8-A15 (PINK). For any other start pin we fall back to digitalRead(). More...

#include <config_avr.h>

Public Member Functions

 PinReader (int startPin)
 
PinBitArray readAll ()
 reads all pins and provides the result as bitmask
 
 PinReader (int startPin)
 
PinBitArray readAll ()
 reads all pins and provides the result as bitmask - PIND:pins 0 to 7 / PINB: pins 8 to 13
 
 PinReader (int startPin)
 
PinBitArray readAll ()
 reads all pins and provides the result as bitmask
 
 PinReader (int startPin)
 
PinBitArray readAll ()
 reads all pins and provides the result as bitmask
 
 PinReader (int startPin)
 
PinBitArray readAll ()
 reads all pins and provides the result as bitmask
 

Detailed Description

Arduino Mega specific implementation Logic for the PinReader. The Mega GPIO numbers are not mapped to PORTB/PORTD like on the Uno/Nano: we read the port register that contains the start pin. Supported start pins with a fast register read: 22-29 (PINA), A0-A7 (PINF) and A8-A15 (PINK). For any other start pin we fall back to digitalRead().

Pico specific implementation Logic for the PinReader.

ESP8266 specific implementation Logic for PinReader.

ESP32 specific implementation Logic for the PinReader.

AVR specific implementation Logic for the PinReader (Uno/Nano pin layout)

Author
Phil Schatzmann

The documentation for this class was generated from the following files: