Arduino PulseWire Transceiver Library
Loading...
Searching...
No Matches
TransceiverConfig.h
1#pragma once
2
3#include <stdint.h>
4
6#if defined(ESP32)
7#define HAS_SET_PMW_FREQUENCY2
8#define HAS_INTERRUPT_ARG
9#define HAS_STL
10#endif
11
12#if defined(ESP8266)
13#define HAS_SET_PMW_FREQUENCY1
14#define HAS_INTERRUPT_ARG
15#define HAS_STL
16#endif
17
18
19#if defined(ARDUINO_ARCH_STM32)
20#define HAS_SET_PMW_FREQUENCY1
21#define HAS_STL
22#endif
23
25#if defined(ARDUINO_ARCH_RP2040)
26#define HAS_STL
27#define HAS_SET_PMW_FREQUENCY1
28#endif
29
30#define USE_RAW_DELAY false
31
32namespace pulsewire {
33
36static const uint32_t CARRIER_HZ = 38000;
37
40static const uint32_t DEFAULT_BIT_FREQ_HZ = 1000;
41
43static const uint16_t DEFAULT_FRAME_SIZE = 256;
44
45} // namespace pulsewire
46
47// For Arduino sketches, use pulsewire::Transceiver explicitly or add 'using' in
48// your sketch if desired.
49#ifdef ARDUINO
50using namespace pulsewire;
51#endif