![]() |
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.
|
Macros | |
#define | SET_ROL_ADDR(x) (((x) & 0x07) << 0) |
#define | GET_ROL_ADDR(x) (((x) & 0x07) << 0) |
#define | SET_CHANNEL(x) ((((x) - 1) & 0x03) << 6) |
#define | GET_CHANNEL(x) ((((x) >> 6) & 0x03) + 1) |
#define | SET_TEMP(x) |
#define | GET_TEMP(x) |
#define | SIGN_BIT (1UL << 21) |
#define | LOW_BAT_BIT (1UL << 23) |
#define | SET_CRC(x) ((uint32_t)(x) << 24) |
#define | GET_CRC(x) ((x) >> 24) |
#define GET_CHANNEL | ( | x | ) | ((((x) >> 6) & 0x03) + 1) |
Get channel
Definition at line 49 of file ErriezOregonTHN128.c.
#define GET_CRC | ( | x | ) | ((x) >> 24) |
Get CRC
Definition at line 69 of file ErriezOregonTHN128.c.
#define GET_ROL_ADDR | ( | x | ) | (((x) & 0x07) << 0) |
Get rolling address
Definition at line 44 of file ErriezOregonTHN128.c.
#define GET_TEMP | ( | x | ) |
Get temperature
Definition at line 56 of file ErriezOregonTHN128.c.
#define LOW_BAT_BIT (1UL << 23) |
Low battery bit
Definition at line 64 of file ErriezOregonTHN128.c.
#define SET_CHANNEL | ( | x | ) | ((((x) - 1) & 0x03) << 6) |
Set channel
Definition at line 47 of file ErriezOregonTHN128.c.
#define SET_CRC | ( | x | ) | ((uint32_t)(x) << 24) |
Set CRC
Definition at line 67 of file ErriezOregonTHN128.c.
#define SET_ROL_ADDR | ( | x | ) | (((x) & 0x07) << 0) |
Set rolling address
Definition at line 42 of file ErriezOregonTHN128.c.
#define SET_TEMP | ( | x | ) |
Set temperature
Definition at line 52 of file ErriezOregonTHN128.c.
#define SIGN_BIT (1UL << 21) |
Sign bit
Definition at line 61 of file ErriezOregonTHN128.c.