Commit b096b104 authored by TASTE User's avatar TASTE User
Browse files

add tc secondary header

parent fb966160
This diff is collapsed.
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
......
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),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment