Rev 1875 | Rev 1904 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1875 | Rev 1886 | ||
|---|---|---|---|
| Line 79... | Line 79... | ||
| 79 | return expandMarantz(buf, len, proto); |
79 | return expandMarantz(buf, len, proto); |
| 80 | case IR_PROTO_PANASONIC: |
80 | case IR_PROTO_PANASONIC: |
| 81 | return expandPanasonic(buf, len, proto); |
81 | return expandPanasonic(buf, len, proto); |
| 82 | case IR_PROTO_SKY: |
82 | case IR_PROTO_SKY: |
| 83 | return expandSky(buf, len, proto); |
83 | return expandSky(buf, len, proto); |
| - | 84 | case IR_PROTO_NEXA2: |
|
| - | 85 | return expandNexa2(buf, len, proto); |
|
| 84 | } |
86 | } |
| 85 | /* Invalid protocol specified. */ |
87 | /* Invalid protocol specified. */ |
| 86 | return IR_NOT_CORRECT_DATA; |
88 | return IR_NOT_CORRECT_DATA; |
| 87 | } |
89 | } |
| 88 | 90 | ||
| Line 1011... | Line 1013... | ||
| 1011 | proto->protocol=IR_PROTO_NEXA2; |
1013 | proto->protocol=IR_PROTO_NEXA2; |
| 1012 | proto->timeout=IR_NEXA2_TIMEOUT; |
1014 | proto->timeout=IR_NEXA2_TIMEOUT; |
| 1013 | proto->data=rawbitsTemp; |
1015 | proto->data=rawbitsTemp; |
| 1014 | return IR_OK; |
1016 | return IR_OK; |
| 1015 | } |
1017 | } |
| - | 1018 | ||
| 1016 | #endif |
1019 | #endif |
| - | 1020 | ||
| - | 1021 | /** |
|
| - | 1022 | * Expand data from Nexa2 protocol |
|
| - | 1023 | * |
|
| - | 1024 | * |
|
| - | 1025 | * @param buf |
|
| - | 1026 | * Pointer to buffer to store the expanded data |
|
| - | 1027 | * @param len |
|
| - | 1028 | * Pointer to length of the data |
|
| - | 1029 | * @param proto |
|
| - | 1030 | * Pointer to protocol information |
|
| - | 1031 | * @return |
|
| - | 1032 | * IR_OK if data expanded successfully, one of several errormessages if not |
|
| - | 1033 | */ |
|
| - | 1034 | int8_t expandNexa2(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto) { |
|
| - | 1035 | buf[0] = IR_NEXA2_START1; |
|
| - | 1036 | buf[1] = IR_NEXA2_HIGH; |
|
| - | 1037 | buf[2] = IR_NEXA2_START2; |
|
| - | 1038 | ||
| - | 1039 | // TODO find out if dimmer value should be send, set different length, pad different |
|
| - | 1040 | ||
| - | 1041 | return IR_NOT_CORRECT_DATA; |
|
| - | 1042 | } |
|
| 1017 | 1043 | ||