Erriez Oregon THN128 433MHz temperature sensor library for Arduino  1.1.0
This is an Oregon THN128 433MHz temperature sensor transmit/receive library for Arduino.
ErriezOregonTHN128Receive.h
Go to the documentation of this file.
1 /*
2  * MIT License
3  *
4  * Copyright (c) 2020-2022 Erriez
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 
86 #ifndef ERRIEZ_OREGON_THN128_RECEIVER_H_
87 #define ERRIEZ_OREGON_THN128_RECEIVER_H_
88 
89 #include <stdint.h>
90 #include "ErriezOregonTHN128.h"
91 
92 // Macro IRAM_ATTR is defined for ESP pin interrupts
93 #ifndef IRAM_ATTR
94 #define IRAM_ATTR
95 #endif
96 
97 #ifdef __cplusplus
98 extern "C" {
99 #endif
100 
101 /* Public functions */
102 void OregonTHN128_RxBegin(uint8_t extIntPin);
103 void OregonTHN128_RxEnable();
105 bool OregonTHN128_Available(void);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif /* ERRIEZ_OREGON_THN128_RECEIVER_H_ */
bool OregonTHN128_Available(void)
Check if data received.
bool OregonTHN128_Read(OregonTHN128Data_t *data)
Read data.
void OregonTHN128_RxEnable()
Receive enable.
void OregonTHN128_RxBegin(uint8_t extIntPin)
Initialize receiver pin.
void OregonTHN128_RxDisable()
Receive disable.