IRremote
digitalWriteFast.h File Reference
#include <Arduino.h>
Include dependency graph for digitalWriteFast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BIT_READ(value, bit)   ((value) & (1UL << (bit)))
 
#define BIT_SET(value, bit)   ((value) |= (1UL << (bit)))
 
#define BIT_CLEAR(value, bit)   ((value) &= ~(1UL << (bit)))
 
#define BIT_WRITE(value, bit, bitvalue)   (bitvalue ? BIT_SET(value, bit) : BIT_CLEAR(value, bit))
 
#define digitalWriteFast   digitalWrite
 
#define pinModeFast   pinMode
 
#define digitalReadFast   digitalRead
 
#define digitalToggleFast(P)   digitalWrite(P, ! digitalRead(P))
 

Functions

void NonConstantsUsedForPinModeFast (void) __attribute__((error("Parameter for pinModeFast() function is not const ant")))
 
void NonConstantsUsedForDigitalWriteFast (void) __attribute__((error("Parameter for digitalWriteFast() function is not const ant")))
 
void NonConstantsUsedForDigitalToggleFast (void) __attribute__((error("Parameter for digitalToggleFast() function is not const ant")))
 
int NonConstantsUsedForDigitalReadFast (void) __attribute__((error("Parameter for digitalReadFast() function is not const ant")))
 

Macro Definition Documentation

◆ BIT_CLEAR

#define BIT_CLEAR (   value,
  bit 
)    ((value) &= ~(1UL << (bit)))

Definition at line 25 of file digitalWriteFast.h.

◆ BIT_READ

#define BIT_READ (   value,
  bit 
)    ((value) & (1UL << (bit)))

Definition at line 19 of file digitalWriteFast.h.

◆ BIT_SET

#define BIT_SET (   value,
  bit 
)    ((value) |= (1UL << (bit)))

Definition at line 22 of file digitalWriteFast.h.

◆ BIT_WRITE

#define BIT_WRITE (   value,
  bit,
  bitvalue 
)    (bitvalue ? BIT_SET(value, bit) : BIT_CLEAR(value, bit))

Definition at line 28 of file digitalWriteFast.h.

◆ digitalReadFast

#define digitalReadFast   digitalRead

Definition at line 394 of file digitalWriteFast.h.

◆ digitalToggleFast

#define digitalToggleFast (   P)    digitalWrite(P, ! digitalRead(P))

Definition at line 416 of file digitalWriteFast.h.

◆ digitalWriteFast

#define digitalWriteFast   digitalWrite

Definition at line 340 of file digitalWriteFast.h.

◆ pinModeFast

#define pinModeFast   pinMode

Definition at line 372 of file digitalWriteFast.h.

Function Documentation

◆ NonConstantsUsedForDigitalReadFast()

int NonConstantsUsedForDigitalReadFast ( void  ) const

◆ NonConstantsUsedForDigitalToggleFast()

void NonConstantsUsedForDigitalToggleFast ( void  ) const

◆ NonConstantsUsedForDigitalWriteFast()

void NonConstantsUsedForDigitalWriteFast ( void  ) const

◆ NonConstantsUsedForPinModeFast()

void NonConstantsUsedForPinModeFast ( void  ) const