-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
658 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,4 +246,5 @@ knx-->Platform | |
*/ | ||
#include "knx/knx_facade.h" | ||
#include "knx/group_object/dpt/dpts.h" | ||
using namespace Knx; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "dpt1.h" | ||
|
||
#include "dptconvert.h" | ||
|
||
Knx::Dpt1::Dpt1() {} | ||
|
||
Knx::Dpt1::Dpt1(bool value) : _value(value) {} | ||
|
||
Knx::Go_SizeCode Knx::Dpt1::size() const | ||
{ | ||
return Go_1_Bit; | ||
} | ||
|
||
void Knx::Dpt1::encode(uint8_t* data) const | ||
{ | ||
bitToPayload(data, 7, _value); | ||
} | ||
|
||
void Knx::Dpt1::decode(uint8_t* data) | ||
{ | ||
_value = bitFromPayload(data, 7); | ||
} | ||
|
||
void Knx::Dpt1::value(bool value) | ||
{ | ||
_value = value; | ||
} | ||
|
||
bool Knx::Dpt1::value() | ||
{ | ||
return _value; | ||
} | ||
|
||
Knx::Dpt1::operator bool() const | ||
{ | ||
return _value; | ||
} | ||
|
||
|
||
Knx::Dpt1& Knx::Dpt1::operator=(const bool value) | ||
{ | ||
_value = value; | ||
return *this; | ||
} |
Oops, something went wrong.