-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds routines to encode railcom data for a sender. (#553)
- Adds 6-to-8 encode table - Adds helper functions to perform encoding - Adds unittests that validate that encoding and decoding are correctly inverse of each other. Fixes constants: - Aligns with RCN-217 on the two different ACK values - Adds the newly appointed NACK value from RCN-217 Refactoring in the RailCom header: - Makes RailcomDefs to a struct from a namespace. This is aligned better with the style of the rest of the codebase. === * Adds routines to encode railcom data for a sender. - Adds 6-to-8 encode table - Adds helper functions to perform encoding - Adds unittests that validate that encoding and decoding are correctly inverse of each other. Fixes contants: - Aligns with RCN-217 on the two different ACK values - Adds the newly appointed NACK value from RCN-217 Refactoring in the RailCom header: - Makes RailcomDefs to a struct from a namespace. This is aligned better with the style of the rest of the codebase. * Fix comment.
- Loading branch information
1 parent
05e5d61
commit 9efe188
Showing
3 changed files
with
237 additions
and
37 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