Infrared4Arduino 1.2.3
|
This file defines some general data types that are used in the library. More...
#include <Arduino.h>
Go to the source code of this file.
Typedefs | |
typedef uint16_t | microseconds_t |
Type for durations in micro seconds. More... | |
typedef uint16_t | milliseconds_t |
Type for durations in milli seconds. More... | |
typedef uint32_t | frequency_t |
Type for modulation frequency in Hz. More... | |
typedef int8_t | dutycycle_t |
Type for duty cycle in percent. More... | |
typedef uint8_t | pin_t |
Type for GPIO pin, compatible with Arduino libs. More... | |
Variables | |
static constexpr microseconds_t | MICROSECONDS_T_MAX = static_cast<microseconds_t>(-1) |
Largest microseconds_t number possible. More... | |
static constexpr milliseconds_t | MILLISECONDS_T_MAX = static_cast<milliseconds_t>(-1) |
Largest milliseconds_t number possible. More... | |
static constexpr pin_t | invalidPin = 255 |
Symbolic name for an invalid pin number. More... | |
static constexpr pin_t | PIN_T_MAX = 255 |
Largest pin_t number possible. More... | |
This file defines some general data types that are used in the library.
Definition in file InfraredTypes.h.
typedef int8_t dutycycle_t |
Type for duty cycle in percent.
Less than 0 means no information/don't care.
Definition at line 36 of file InfraredTypes.h.
typedef uint32_t frequency_t |
Type for modulation frequency in Hz.
Definition at line 31 of file InfraredTypes.h.
typedef uint16_t microseconds_t |
Type for durations in micro seconds.
Change to a longer type if needed, AND you know what you are doing. But DO NOT use a system dependent type like int!
Definition at line 15 of file InfraredTypes.h.
typedef uint16_t milliseconds_t |
Type for durations in milli seconds.
Using a larger type than 16 bits probably is not sensible.
Definition at line 24 of file InfraredTypes.h.
typedef uint8_t pin_t |
Type for GPIO pin, compatible with Arduino libs.
Definition at line 41 of file InfraredTypes.h.
|
staticconstexpr |
Symbolic name for an invalid pin number.
Definition at line 43 of file InfraredTypes.h.
|
staticconstexpr |
Largest microseconds_t number possible.
Definition at line 18 of file InfraredTypes.h.
|
staticconstexpr |
Largest milliseconds_t number possible.
Definition at line 26 of file InfraredTypes.h.
|
staticconstexpr |
Largest pin_t number possible.
Definition at line 45 of file InfraredTypes.h.