Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taps
Commits
b096b104
Commit
b096b104
authored
Jul 17, 2017
by
TASTE User
Browse files
add tc secondary header
parent
fb966160
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
DataView.aadl
View file @
b096b104
This diff is collapsed.
Click to expand it.
DataView.acn
View file @
b096b104
Taps DEFINITIONS ::= BEGIN
APID[encoding pos-int, encode-values, size 11]
TYPE8b-ID[encoding pos-int, size 8]
TC[]{
packet-version-no NULL [pattern '000'B],
packet-type NULL [pattern '1'B], -- 1 for TC, 0 for TM
has-secondary-hdr NULL [pattern '1'B], -- !!! 0 for cpdu packets
dest-apid [],
sequence-flags NULL [pattern '11'B]
sequence-flags NULL [pattern '11'B],
sequence-count [],
packet-length [],
secondary-header [] {
pus-version-number NULL [pattern '0010'B],
ack-successful-completion [],
ack-successful-progress [],
ack-successful-start [],
ack-successful-acceptance [],
service-type-id TYPE8b-ID [],
service-subtype-id TYPE8b-ID [],
source-id []
}
}
TM[]{
packet-version-no NULL [pattern '000'B],
packet-type NULL [pattern '0'B], -- 1 for TC, 0 for TM
has-secondary-hdr NULL [pattern '1'B], -- !!! 0 for time packets
source-apid [],
sequence-flags NULL [pattern '11'B]
sequence-flags NULL [pattern '11'B],
sequence-count [],
packet-length []
--secondary-header [] {
-- pus-version-number NULL [pattern '0010'B],
-- source-id []
--}
}
END
...
...
DataView.asn
View file @
b096b104
PUS-Implicit-Knowledge DEFINITIONS ::=
BEGIN
TC-type {APID} ::= SEQUENCE {
dest-apid APID
dest-apid APID,
sequence-count INTEGER(0..16383),
packet-length INTEGER(0..65535),
secondary-header TC-Secondary-Header {APID}
}
TM-type {APID} ::= SEQUENCE {
source-apid APID
source-apid APID,
sequence-count INTEGER(0..16383),
packet-length INTEGER(0..65535)
}
TC-Secondary-Header {APID} ::= SEQUENCE {
ack-successful-completion BOOLEAN,
ack-successful-progress BOOLEAN,
ack-successful-start BOOLEAN,
ack-successful-acceptance BOOLEAN,
source-id APID
}
END
...
...
@@ -16,6 +29,9 @@ BEGIN
IMPORTS TC-type, TM-type
FROM PUS-Implicit-Knowledge;
-- for acn TC packet secondary header type & subtype
TYPE8b-ID ::= INTEGER (0..255)
APID ::= ENUMERATED { --let ACN manage the "11 bits" constraint
ground(1),
sc-routing(2),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment