Arduino Pin Library v4.2.2
An easy to use Arduino library for fast and simultaneous operations on Arduino I/O pins.
Loading...
Searching...
No Matches
Pin.h File Reference

Fast operations on Arduino I/O pins. More...

#include "Arduino.h"

Go to the source code of this file.

Data Structures

class  Pin
 Class for fast operations on Arduino I/O pins. More...
 

Macros

#define DDR_HIGH   (*_DDR |= _offset)
 Set the DDR register to HIGH for the pin.
 
#define DDR_TOGGLE   (*_DDR ^= _offset)
 Set the DDR register to the inverse for the pin.
 
#define DDR_LOW   (*_DDR &= _ioffset)
 Set the DDR register to LOW for the pin.
 
#define PORT_HIGH   (*_PORT |= _offset)
 Set the PORT register to HIGH for the pin.
 
#define PORT_TOGGLE   (*_PORT ^= _offset)
 Set the PORT register to the inverse for the pin.
 
#define PORT_LOW   (*_PORT &= _ioffset)
 Set the PORT register to LOW for the pin.
 
#define DDR_ON   (*_DDR & _offset)
 Get the DDR register for the pin (HIGH, LOW)
 
#define DDR_OFF   (*_DDR | _ioffset)
 Get the DDR register for the pin (HIGH, LOW)
 
#define PORT_ON   (*_PORT & _offset)
 Get the PORT register for the pin (HIGH, LOW)
 
#define PORT_OFF   (*_PORT | _ioffset)
 Get the PORT register for the pin (HIGH, LOW)
 
#define PIN_ON   (*_PIN & _offset)
 Get the PIN register for the pin (HIGH, LOW)
 
#define PIN_OFF   (*_PIN | _ioffset)
 Get the PIN register for the pin (HIGH, LOW)
 

Detailed Description

Fast operations on Arduino I/O pins.

Definition in file Pin.h.

Macro Definition Documentation

◆ DDR_HIGH

#define DDR_HIGH   (*_DDR |= _offset)

Set the DDR register to HIGH for the pin.

Definition at line 18 of file Pin.h.

◆ DDR_LOW

#define DDR_LOW   (*_DDR &= _ioffset)

Set the DDR register to LOW for the pin.

Definition at line 20 of file Pin.h.

◆ DDR_OFF

#define DDR_OFF   (*_DDR | _ioffset)

Get the DDR register for the pin (HIGH, LOW)

Definition at line 27 of file Pin.h.

◆ DDR_ON

#define DDR_ON   (*_DDR & _offset)

Get the DDR register for the pin (HIGH, LOW)

Definition at line 26 of file Pin.h.

◆ DDR_TOGGLE

#define DDR_TOGGLE   (*_DDR ^= _offset)

Set the DDR register to the inverse for the pin.

Definition at line 19 of file Pin.h.

◆ PIN_OFF

#define PIN_OFF   (*_PIN | _ioffset)

Get the PIN register for the pin (HIGH, LOW)

Definition at line 33 of file Pin.h.

◆ PIN_ON

#define PIN_ON   (*_PIN & _offset)

Get the PIN register for the pin (HIGH, LOW)

Definition at line 32 of file Pin.h.

◆ PORT_HIGH

#define PORT_HIGH   (*_PORT |= _offset)

Set the PORT register to HIGH for the pin.

Definition at line 22 of file Pin.h.

◆ PORT_LOW

#define PORT_LOW   (*_PORT &= _ioffset)

Set the PORT register to LOW for the pin.

Definition at line 24 of file Pin.h.

◆ PORT_OFF

#define PORT_OFF   (*_PORT | _ioffset)

Get the PORT register for the pin (HIGH, LOW)

Definition at line 30 of file Pin.h.

◆ PORT_ON

#define PORT_ON   (*_PORT & _offset)

Get the PORT register for the pin (HIGH, LOW)

Definition at line 29 of file Pin.h.

◆ PORT_TOGGLE

#define PORT_TOGGLE   (*_PORT ^= _offset)

Set the PORT register to the inverse for the pin.

Definition at line 23 of file Pin.h.