Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
InfraredTypes.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
4
15typedef uint16_t microseconds_t;
16//typedef uint32_t microseconds_t;
18static constexpr microseconds_t MICROSECONDS_T_MAX = static_cast<microseconds_t>(-1);
19
24typedef uint16_t milliseconds_t;
26static constexpr milliseconds_t MILLISECONDS_T_MAX = static_cast<milliseconds_t>(-1);
27
31typedef uint32_t frequency_t;
32
36typedef int8_t dutycycle_t;
37
41typedef uint8_t pin_t;
43static constexpr pin_t invalidPin = 255;
45static constexpr pin_t PIN_T_MAX = 255;
static constexpr microseconds_t MICROSECONDS_T_MAX
Largest microseconds_t number possible.
Definition: InfraredTypes.h:18
int8_t dutycycle_t
Type for duty cycle in percent.
Definition: InfraredTypes.h:36
uint16_t microseconds_t
Type for durations in micro seconds.
Definition: InfraredTypes.h:15
static constexpr pin_t PIN_T_MAX
Largest pin_t number possible.
Definition: InfraredTypes.h:45
static constexpr milliseconds_t MILLISECONDS_T_MAX
Largest milliseconds_t number possible.
Definition: InfraredTypes.h:26
uint32_t frequency_t
Type for modulation frequency in Hz.
Definition: InfraredTypes.h:31
uint16_t milliseconds_t
Type for durations in milli seconds.
Definition: InfraredTypes.h:24
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
Definition: InfraredTypes.h:41
static constexpr pin_t invalidPin
Symbolic name for an invalid pin number.
Definition: InfraredTypes.h:43