#include <cstdint>
Include dependency graph for WConstants.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
#define | WIRING 101 |
#define | F_CPU 80000000L |
#define | LOW 0x0 |
#define | HIGH 0x1 |
#define | INPUT 0x00 |
#define | INPUT_PULLUP 0x02 |
#define | INPUT_PULLDOWN_16 0x04 |
#define | INPUT_PULLDOWN 0x04 |
#define | OUTPUT 0x01 |
#define | OUTPUT_OPEN_DRAIN 0x03 |
#define | WAKEUP_PULLUP 0x05 |
#define | WAKEUP_PULLDOWN 0x07 |
#define | SPECIAL 0xF8 |
#define | FUNCTION_0 0x08 |
#define | FUNCTION_1 0x18 |
#define | FUNCTION_2 0x28 |
#define | FUNCTION_3 0x38 |
#define | FUNCTION_4 0x48 |
#define | ANALOG 0xc0 |
#define | CHANGE 32 |
#define | FALLING 2 |
#define | RISING 3 |
#define | LSBFIRST 0x0 |
#define | MSBFIRST 0x1 |
#define | null NULL |
#define | DEC 10 |
#define | HEX 16 |
#define | OCT 8 |
#define | BIN 2 |
#define | PI (3.1415926535897932384626433832795) |
#define | TWO_PI (6.283185307179586476925286766559) |
#define | HALF_PI (1.5707963267948966192313216916398) |
#define | EPSILON (0.0001) |
#define | DEG_TO_RAD (0.017453292519943295769236907684886) |
#define | RAD_TO_DEG (57.295779513082320876798154814105) |
#define | PORT0 0 |
#define | PORT1 1 |
#define | PORT2 2 |
#define | PORT3 3 |
#define | PORT4 4 |
#define | PORT5 5 |
#define | PORT6 6 |
#define | PORT7 7 |
#define | PORT8 8 |
#define | PORT9 9 |
#define | word(...) makeWord(__VA_ARGS__) |
#define | sq(x) ((x) * (x)) |
#define | radians(deg) ((deg)*DEG_TO_RAD) |
#define | degrees(rad) ((rad)*RAD_TO_DEG) |
#define | constrain(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) |
#define | lowByte(x) ((uint8_t)((x)&0x00ff)) |
#define | highByte(x) ((uint8_t)((x) >> 8)) |
#define | clockCyclesPerMicrosecond() (F_CPU / 1000000L) |
#define | clockCyclesToMicroseconds(a) ((a) / clockCyclesPerMicrosecond()) |
#define | microsecondsToClockCycles(a) ((a)*clockCyclesPerMicrosecond()) |
Typedefs | |
using | word = unsigned int |
using | byte = uint8_t |
using | boolean = uint8_t |
using | voidFuncPtr = void(*)(void) |
Macro Definition Documentation
◆ ANALOG
#define ANALOG 0xc0 |
◆ BIN
#define BIN 2 |
◆ CHANGE
#define CHANGE 32 |
◆ clockCyclesPerMicrosecond
#define clockCyclesPerMicrosecond | ( | ) | (F_CPU / 1000000L) |
◆ clockCyclesToMicroseconds
#define clockCyclesToMicroseconds | ( | a | ) | ((a) / clockCyclesPerMicrosecond()) |
◆ constrain
#define constrain | ( | amt, | |
low, | |||
high | |||
) | ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) |
◆ DEC
#define DEC 10 |
◆ DEG_TO_RAD
#define DEG_TO_RAD (0.017453292519943295769236907684886) |
◆ degrees
#define degrees | ( | rad | ) | ((rad)*RAD_TO_DEG) |
◆ EPSILON
#define EPSILON (0.0001) |
◆ F_CPU
#define F_CPU 80000000L |
◆ FALLING
#define FALLING 2 |
◆ FUNCTION_0
#define FUNCTION_0 0x08 |
◆ FUNCTION_1
#define FUNCTION_1 0x18 |
◆ FUNCTION_2
#define FUNCTION_2 0x28 |
◆ FUNCTION_3
#define FUNCTION_3 0x38 |
◆ FUNCTION_4
#define FUNCTION_4 0x48 |
◆ HALF_PI
#define HALF_PI (1.5707963267948966192313216916398) |
◆ HEX
#define HEX 16 |
◆ HIGH
#define HIGH 0x1 |
◆ highByte
#define highByte | ( | x | ) | ((uint8_t)((x) >> 8)) |
◆ INPUT
#define INPUT 0x00 |
◆ INPUT_PULLDOWN
#define INPUT_PULLDOWN 0x04 |
◆ INPUT_PULLDOWN_16
#define INPUT_PULLDOWN_16 0x04 |
◆ INPUT_PULLUP
#define INPUT_PULLUP 0x02 |
◆ LOW
#define LOW 0x0 |
◆ lowByte
#define lowByte | ( | x | ) | ((uint8_t)((x)&0x00ff)) |
◆ LSBFIRST
#define LSBFIRST 0x0 |
◆ microsecondsToClockCycles
#define microsecondsToClockCycles | ( | a | ) | ((a)*clockCyclesPerMicrosecond()) |
◆ MSBFIRST
#define MSBFIRST 0x1 |
◆ null
#define null NULL |
◆ OCT
#define OCT 8 |
◆ OUTPUT
#define OUTPUT 0x01 |
◆ OUTPUT_OPEN_DRAIN
#define OUTPUT_OPEN_DRAIN 0x03 |
◆ PI
#define PI (3.1415926535897932384626433832795) |
◆ PORT0
#define PORT0 0 |
◆ PORT1
#define PORT1 1 |
◆ PORT2
#define PORT2 2 |
◆ PORT3
#define PORT3 3 |
◆ PORT4
#define PORT4 4 |
◆ PORT5
#define PORT5 5 |
◆ PORT6
#define PORT6 6 |
◆ PORT7
#define PORT7 7 |
◆ PORT8
#define PORT8 8 |
◆ PORT9
#define PORT9 9 |
◆ RAD_TO_DEG
#define RAD_TO_DEG (57.295779513082320876798154814105) |
◆ radians
#define radians | ( | deg | ) | ((deg)*DEG_TO_RAD) |
◆ RISING
#define RISING 3 |
◆ SPECIAL
#define SPECIAL 0xF8 |
◆ sq
#define sq | ( | x | ) | ((x) * (x)) |
◆ TWO_PI
#define TWO_PI (6.283185307179586476925286766559) |
◆ WAKEUP_PULLDOWN
#define WAKEUP_PULLDOWN 0x07 |
◆ WAKEUP_PULLUP
#define WAKEUP_PULLUP 0x05 |
◆ WIRING
#define WIRING 101 |
◆ word
Typedef Documentation
◆ boolean
using boolean = uint8_t |
◆ byte
using byte = uint8_t |
◆ voidFuncPtr
using voidFuncPtr = void (*)(void) |