Rev 734 | Rev 835 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 734 | Rev 814 | ||
|---|---|---|---|
| Line 615... | Line 615... | ||
| 615 | /** |
615 | /** |
| 616 | * Test data on Marantz protocol |
616 | * Test data on Marantz protocol |
| 617 | * Reverse-Engineered by Noddan, very similar to RC-5. |
617 | * Reverse-Engineered by Noddan, very similar to RC-5. |
| 618 | * Not tested with odd adresses since I have no remote that sends them. |
618 | * Not tested with odd adresses since I have no remote that sends them. |
| 619 | * Don't know what happens with the extra long bit in that case. |
619 | * Don't know what happens with the extra long bit in that case. |
| 620 | * TODO: Replace all the RC5 with Marantz :D |
- | |
| 621 | * |
620 | * |
| 622 | * @param buf |
621 | * @param buf |
| 623 | * Pointer to buffer to where to data to parse is stored |
622 | * Pointer to buffer to where to data to parse is stored |
| 624 | * @param len |
623 | * @param len |
| 625 | * Length of the data |
624 | * Length of the data |
| Line 650... | Line 649... | ||
| 650 | return IR_NOT_CORRECT_DATA; |
649 | return IR_NOT_CORRECT_DATA; |
| 651 | } |
650 | } |
| 652 | 651 | ||
| 653 | } |
652 | } |
| 654 | 653 | ||
| 655 | //rawbits = (uint32_t)1<<17; |
- | |
| 656 | proto->protocol=IR_PROTO_MARANTZ; |
654 | proto->protocol=IR_PROTO_MARANTZ; |
| 657 | proto->timeout=IR_MARANTZ_TIMEOUT; |
655 | proto->timeout=IR_MARANTZ_TIMEOUT; |
| 658 | //support RC5-extended keeping second startbit |
- | |
| 659 | //remove togglebit |
- | |
| 660 | //proto->data = rawbits&0x37ff; |
- | |
| 661 | proto->data = rawbits&0x0001ffff; |
656 | proto->data = rawbits&0x0001ffff; |
| 662 | 657 | ||
| 663 | return IR_OK; |
658 | return IR_OK; |
| 664 | } |
659 | } |
| 665 | 660 | ||