Repository navigation
E1.33 cherry pick #1939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
peternewman
merged 6 commits into
OpenLightingProject:master
from
peternewman:e1.33-cherry-pick
Mar 16, 2024
Merged
E1.33 cherry pick #1939
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3599bb0
First attempt at LLRP header and PDU
peternewman bd89fea
Update some E1.33 Vectors
peternewman 8e7b751
Tidy some Doxygen
peternewman d9ef9fd
Fix the lint issues
peternewman ee0a5ab
Add LLRP Probe Request PDU, fix the length flags bug
peternewman cb1d8f7
Improve clarity with more braces
peternewman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,70 @@ | ||
| /* | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; either version 2 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Library General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program; if not, write to the Free Software | ||
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| * | ||
| * ACNFlags.h | ||
| * Flags used in ACN PDUs | ||
| * Copyright (C) 2020 Peter Newman | ||
| */ | ||
|
|
||
| #ifndef INCLUDE_OLA_ACN_ACNFLAGS_H_ | ||
| #define INCLUDE_OLA_ACN_ACNFLAGS_H_ | ||
|
|
||
| /** | ||
| * @addtogroup acn | ||
| * @{ | ||
| * @file ACNFlags.h | ||
| * @brief ACN flag values. | ||
| * @} | ||
| */ | ||
|
|
||
| #include <stdint.h> | ||
|
|
||
| namespace ola { | ||
| namespace acn { | ||
|
|
||
| /** | ||
| * @addtogroup acn | ||
| * @{ | ||
| */ | ||
|
|
||
| // masks for the flag fields | ||
| /** | ||
| * @brief This indicates a 20 bit length field (default is 12 bits) | ||
| */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. github colors this line in the diff, not sure why?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see any special colour in mine, just that the whole file is new. 🤷 |
||
| static const uint8_t LFLAG_MASK = 0x80; | ||
|
|
||
| /** | ||
| * @brief This indicates a vector is present | ||
| */ | ||
| static const uint8_t VFLAG_MASK = 0x40; | ||
|
|
||
| /** | ||
| * @brief This indicates a header field is present | ||
| */ | ||
| static const uint8_t HFLAG_MASK = 0x20; | ||
|
|
||
| /** | ||
| * @brief This indicates a data field is present | ||
| */ | ||
| static const uint8_t DFLAG_MASK = 0x10; | ||
|
|
||
| /** | ||
| * @} | ||
| */ | ||
|
|
||
| } // namespace acn | ||
| } // namespace ola | ||
|
|
||
| #endif // INCLUDE_OLA_ACN_ACNFLAGS_H_ | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,69 @@ | ||
| /* | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; either version 2 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Library General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program; if not, write to the Free Software | ||
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| * | ||
| * LLRPHeader.h | ||
| * The E1.33 LLRP Header | ||
| * Copyright (C) 2020 Peter Newman | ||
| */ | ||
|
|
||
| #ifndef LIBS_ACN_LLRPHEADER_H_ | ||
| #define LIBS_ACN_LLRPHEADER_H_ | ||
|
|
||
| #include <ola/acn/CID.h> | ||
| #include <ola/base/Macro.h> | ||
|
|
||
| #include <stdint.h> | ||
|
|
||
| namespace ola { | ||
| namespace acn { | ||
|
|
||
| /* | ||
| * Header for the LLRP layer | ||
| */ | ||
| class LLRPHeader { | ||
| public: | ||
| LLRPHeader() | ||
| : m_transaction_number(0) { | ||
| } | ||
|
|
||
| LLRPHeader(const ola::acn::CID &destination_cid, | ||
| uint32_t transaction_number) | ||
| : m_destination_cid(destination_cid), | ||
| m_transaction_number(transaction_number) { | ||
| } | ||
| ~LLRPHeader() {} | ||
|
|
||
| const ola::acn::CID DestinationCid() const { return m_destination_cid; } | ||
| uint32_t TransactionNumber() const { return m_transaction_number; } | ||
|
|
||
| bool operator==(const LLRPHeader &other) const { | ||
| return ((m_destination_cid == other.m_destination_cid) && | ||
| (m_transaction_number == other.m_transaction_number)); | ||
| } | ||
|
|
||
| PACK( | ||
| struct llrp_pdu_header_s { | ||
| uint8_t destination_cid[CID::CID_LENGTH]; | ||
| uint32_t transaction_number; | ||
| }); | ||
| typedef struct llrp_pdu_header_s llrp_pdu_header; | ||
|
|
||
| private: | ||
| ola::acn::CID m_destination_cid; | ||
| uint32_t m_transaction_number; | ||
| }; | ||
| } // namespace acn | ||
| } // namespace ola | ||
| #endif // LIBS_ACN_LLRPHEADER_H_ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.