Fix AS923 max-payload table.

Fixes #283 and #276.
This commit is contained in:
Orne Brocaar 2023-09-29 11:18:25 +01:00
parent 97d9072ffc
commit 2c986d0889

View File

@ -203,7 +203,7 @@ impl Configuration {
(
MacVersion::Latest,
[(
Revision::Latest, // PR002-1.0.0, RP002-1.0.1, RP002-1.02
Revision::Latest, // RP002-1.0.0, RP002-1.0.1, RP002-1.02
[
(0, MaxPayloadSize { m: 0, n: 0 }),
(1, MaxPayloadSize { m: 0, n: 0 }),
@ -297,7 +297,7 @@ impl Configuration {
(
MacVersion::Latest,
[(
Revision::Latest, // PR002-1.0.0, RP002-1.0.1, RP002-1.02
Revision::RP002_1_0_0, // RP002-1.0.0
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
@ -316,6 +316,72 @@ impl Configuration {
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_1, // RP002-1.0.1
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 230, n: 222 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_2, // RP002-1.0.2
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 230, n: 222 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::Latest, // RP002-1.0.3
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 230, n: 222 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
]
.iter()
.cloned()
@ -393,16 +459,82 @@ impl Configuration {
(
MacVersion::Latest,
[(
Revision::Latest, // PR002-1.0.0, RP002-1.0.1, RP002-1.02
Revision::RP002_1_0_0, // RP002-1.0.0
[
(0, MaxPayloadSize { m: 0, n: 0 }),
(1, MaxPayloadSize { m: 0, n: 0 }),
(2, MaxPayloadSize { m: 19, n: 11 }),
(3, MaxPayloadSize { m: 61, n: 53 }),
(4, MaxPayloadSize { m: 133, n: 125 }),
(5, MaxPayloadSize { m: 250, n: 242 }),
(6, MaxPayloadSize { m: 250, n: 242 }),
(7, MaxPayloadSize { m: 250, n: 242 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_1, // RP002-1.0.1
[
(0, MaxPayloadSize { m: 0, n: 0 }),
(1, MaxPayloadSize { m: 0, n: 0 }),
(2, MaxPayloadSize { m: 19, n: 11 }),
(3, MaxPayloadSize { m: 61, n: 53 }),
(4, MaxPayloadSize { m: 133, n: 125 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_2, // RP002-1.0.2
[
(0, MaxPayloadSize { m: 0, n: 0 }),
(1, MaxPayloadSize { m: 0, n: 0 }),
(2, MaxPayloadSize { m: 19, n: 11 }),
(3, MaxPayloadSize { m: 61, n: 53 }),
(4, MaxPayloadSize { m: 133, n: 125 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::Latest, // RP002-1.0.3
[
(0, MaxPayloadSize { m: 0, n: 0 }),
(1, MaxPayloadSize { m: 0, n: 0 }),
(2, MaxPayloadSize { m: 19, n: 11 }),
(3, MaxPayloadSize { m: 61, n: 53 }),
(4, MaxPayloadSize { m: 133, n: 125 }),
(5, MaxPayloadSize { m: 230, n: 222 }),
(6, MaxPayloadSize { m: 230, n: 222 }),
(7, MaxPayloadSize { m: 230, n: 222 }),
]
.iter()
.cloned()
@ -487,7 +619,7 @@ impl Configuration {
(
MacVersion::Latest,
[(
Revision::Latest, // PR002-1.0.0, RP002-1.0.1, RP002-1.02
Revision::RP002_1_0_0, // RP002-1.0.0
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
@ -506,6 +638,72 @@ impl Configuration {
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_1, // RP002-1.0.1
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 250, n: 242 }),
(5, MaxPayloadSize { m: 250, n: 242 }),
(6, MaxPayloadSize { m: 250, n: 242 }),
(7, MaxPayloadSize { m: 250, n: 242 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::RP002_1_0_2, // RP002-1.0.2
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 250, n: 242 }),
(5, MaxPayloadSize { m: 250, n: 242 }),
(6, MaxPayloadSize { m: 250, n: 242 }),
(7, MaxPayloadSize { m: 250, n: 242 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
(
MacVersion::Latest,
[(
Revision::Latest, // RP002-1.0.3
[
(0, MaxPayloadSize { m: 59, n: 51 }),
(1, MaxPayloadSize { m: 59, n: 51 }),
(2, MaxPayloadSize { m: 123, n: 115 }),
(3, MaxPayloadSize { m: 123, n: 115 }),
(4, MaxPayloadSize { m: 250, n: 242 }),
(5, MaxPayloadSize { m: 250, n: 242 }),
(6, MaxPayloadSize { m: 250, n: 242 }),
(7, MaxPayloadSize { m: 250, n: 242 }),
]
.iter()
.cloned()
.collect(),
)]
.iter()
.cloned()
.collect(),
),
]
.iter()
.cloned()