|
Last change
on this file since 7 was
3,
checked in by markus, 7 years ago
|
|
Setup project structure
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /* IRLibProtocols.h |
|---|
| 2 | * Part of IRLib Library for Arduino receiving, decoding, and sending |
|---|
| 3 | * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. |
|---|
| 4 | */ |
|---|
| 5 | /* |
|---|
| 6 | * This module enumerates the various supported protocols and defines a program memory |
|---|
| 7 | * string used by the dump routines or your sketches to display the name of a protocol. |
|---|
| 8 | * It is used by both Send and Decode sections of the code but not Receive. |
|---|
| 9 | */ |
|---|
| 10 | #ifndef IRLIBPROTOCOLS_H |
|---|
| 11 | #define IRLIBPROTOCOLS_H |
|---|
| 12 | #include <Arduino.h> |
|---|
| 13 | |
|---|
| 14 | #define UNKNOWN 0 |
|---|
| 15 | #define NEC 1 |
|---|
| 16 | #define SONY 2 |
|---|
| 17 | #define RC5 3 |
|---|
| 18 | #define RC6 4 |
|---|
| 19 | #define PANASONIC_OLD 5 |
|---|
| 20 | #define JVC 6 |
|---|
| 21 | #define NECX 7 |
|---|
| 22 | #define SAMSUNG36 8 |
|---|
| 23 | #define GICABLE 9 |
|---|
| 24 | #define DIRECTV 10 |
|---|
| 25 | #define RCMM 11 |
|---|
| 26 | #define CYKM 12 |
|---|
| 27 | //#define ADDITIONAL_13 13 //add additional protocols here |
|---|
| 28 | //#define ADDITIONAL_14 14 |
|---|
| 29 | #define LAST_PROTOCOL 12 //Be sure to update this when adding protocols |
|---|
| 30 | |
|---|
| 31 | /* |
|---|
| 32 | * Returns a pointer to a flash stored string that is the name of the protocol received. |
|---|
| 33 | */ |
|---|
| 34 | const __FlashStringHelper *Pnames(uint8_t Type); |
|---|
| 35 | |
|---|
| 36 | /* |
|---|
| 37 | * Miscellaneous values used by both Send and Decode modules |
|---|
| 38 | */ |
|---|
| 39 | #define TOPBIT 0x80000000 |
|---|
| 40 | |
|---|
| 41 | // Decoded value for NEC and others when a repeat code is received or to be sent |
|---|
| 42 | #define REPEAT_CODE 0xffffffff |
|---|
| 43 | |
|---|
| 44 | #endif //IRLIBPROTOCOLS_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.