mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Added Datapointtype DPT 7.600 (colortemperature) (#165)
* Added Datapointtype DPT 7.600 (colortemperature) * Added Decoding of Datatype
This commit is contained in:
parent
71e8607f43
commit
36e0a00e80
@ -36,8 +36,8 @@ int KNX_Decode_Value(uint8_t* payload, size_t payload_length, const Dpt& datatyp
|
|||||||
// DPT 6.020 - Status with Mode
|
// DPT 6.020 - Status with Mode
|
||||||
if (datatype.mainGroup == 6 && datatype.subGroup == 20 && datatype.index <= 5)
|
if (datatype.mainGroup == 6 && datatype.subGroup == 20 && datatype.index <= 5)
|
||||||
return busValueToStatusAndMode(payload, payload_length, datatype, value);
|
return busValueToStatusAndMode(payload, payload_length, datatype, value);
|
||||||
// DPT 7.001/7.010/7.011/7.012/7.013 - Unsigned 16 Bit Integer
|
// DPT 7.001/7.010/7.011/7.012/7.013/7.600 - Unsigned 16 Bit Integer
|
||||||
if (datatype.mainGroup == 7 && (datatype.subGroup == 1 || (datatype.subGroup >= 10 && datatype.subGroup <= 13)) && !datatype.index)
|
if (datatype.mainGroup == 7 && (datatype.subGroup == 1 || (datatype.subGroup >= 10 && datatype.subGroup <= 13) || (datatype.subGroup == 600)) && !datatype.index)
|
||||||
return busValueToUnsigned16(payload, payload_length, datatype, value);
|
return busValueToUnsigned16(payload, payload_length, datatype, value);
|
||||||
// DPT 7.002-DPT 7.007 - Time Period
|
// DPT 7.002-DPT 7.007 - Time Period
|
||||||
if (datatype.mainGroup == 7 && datatype.subGroup >= 2 && datatype.subGroup <= 7 && !datatype.index)
|
if (datatype.mainGroup == 7 && datatype.subGroup >= 2 && datatype.subGroup <= 7 && !datatype.index)
|
||||||
@ -156,8 +156,8 @@ int KNX_Encode_Value(const KNXValue& value, uint8_t* payload, size_t payload_len
|
|||||||
// DPT 6.020 - Status with Mode
|
// DPT 6.020 - Status with Mode
|
||||||
if (datatype.mainGroup == 6 && datatype.subGroup == 20 && datatype.index <= 5)
|
if (datatype.mainGroup == 6 && datatype.subGroup == 20 && datatype.index <= 5)
|
||||||
return valueToBusValueStatusAndMode(value, payload, payload_length, datatype);
|
return valueToBusValueStatusAndMode(value, payload, payload_length, datatype);
|
||||||
// DPT 7.001/7.010/7.011/7.012/7.013 - Unsigned 16 Bit Integer
|
// DPT 7.001/7.010/7.011/7.012/7.013/7.600 - Unsigned 16 Bit Integer
|
||||||
if (datatype.mainGroup == 7 && (datatype.subGroup == 1 || (datatype.subGroup >= 10 && datatype.subGroup <= 13)) && !datatype.index)
|
if (datatype.mainGroup == 7 && (datatype.subGroup == 1 || (datatype.subGroup >= 10 && datatype.subGroup <= 13) || datatype.subGroup == 600) && !datatype.index)
|
||||||
return valueToBusValueUnsigned16(value, payload, payload_length, datatype);
|
return valueToBusValueUnsigned16(value, payload, payload_length, datatype);
|
||||||
// DPT 7.002-DPT 7.007 - Time Period
|
// DPT 7.002-DPT 7.007 - Time Period
|
||||||
if (datatype.mainGroup == 7 && datatype.subGroup >= 2 && datatype.subGroup <= 7 && !datatype.index)
|
if (datatype.mainGroup == 7 && datatype.subGroup >= 2 && datatype.subGroup <= 7 && !datatype.index)
|
||||||
|
Loading…
Reference in New Issue
Block a user