-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address design issues in uavcan.metatransport (#99)
* Address #96 for CAN transport * Address #96 for serial * Address #96 for UDP by replacing it with uavcan.metatransport.ethernet * Add explicit deprecation note
- Loading branch information
1 parent
d874225
commit f07d09b
Showing
10 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Classic CAN or CAN FD frame representation. This is the top-level data type in its namespace. | ||
|
||
@union | ||
|
||
Error.0.1 error # CAN error (intentional or disturbance) | ||
DataFD.0.1 data_fd # Bit rate switch flag active | ||
DataClassic.0.1 data_classic # Bit rate switch flag not active | ||
RTR.0.1 remote_transmission_request # Bit rate switch flag not active | ||
|
||
@sealed # Sealed because the structure is rigidly dictated by an external standard. | ||
@assert _offset_.min == 8 + 32 | ||
@assert _offset_.max == 8 + 8 + 32 + 8 + 64 * 8 |
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,10 @@ | ||
# Standard EtherType constants as defined by IEEE Registration Authority and IANA. | ||
# This list is only a small subset of constants that are considered to be relevant for UAVCAN. | ||
|
||
uint16 value | ||
|
||
uint16 IP_V4 = 0x0800 | ||
uint16 ARP = 0x0806 | ||
uint16 IP_V6 = 0x86DD | ||
|
||
@sealed |
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,11 @@ | ||
# IEEE 802.3 Ethernet frame encapsulation. | ||
# In terms of libpcap/tcpdump, the corresponding link type is LINKTYPE_ETHERNET/DLT_EN10MB. | ||
|
||
uint8[6] destination | ||
uint8[6] source | ||
|
||
EtherType.0.1 ethertype | ||
|
||
uint8[<=9216] payload # Supports conventional jumbo frames (up to 9 KiB). | ||
|
||
@sealed # Sealed because the format is defined by external specifications. |
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,10 @@ | ||
# A chunk of raw bytes exchanged over a serial transport. Serial links do not support framing natively. | ||
# The chunk may be of arbitrary size. | ||
# | ||
# If this data type is used to encapsulate UAVCAN/serial, then it is recommended to ensure that each message | ||
# contains at most one UAVCAN/serial transport frame (frames are separated by zero-valued delimiter bytes). | ||
|
||
uint12 CAPACITY_BYTES = 2048 | ||
uint8[<=CAPACITY_BYTES] data | ||
|
||
@sealed |
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 @@ | ||
All data types in this namespace are deprecated. Find replacement under uavcan.metatransport.ethernet. |
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