From e343a48a6596a54a4e330d9e7d3417fae17bfc41 Mon Sep 17 00:00:00 2001
From: Carles Fernandez <carles.fernandez@gmail.com>
Date: Thu, 8 Jun 2023 17:46:58 +0200
Subject: [PATCH] Add work on OSNMA receiver

---
 src/core/system_parameters/Galileo_OSNMA.h | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/core/system_parameters/Galileo_OSNMA.h b/src/core/system_parameters/Galileo_OSNMA.h
index bb3781c3f..be43d91f2 100644
--- a/src/core/system_parameters/Galileo_OSNMA.h
+++ b/src/core/system_parameters/Galileo_OSNMA.h
@@ -32,16 +32,24 @@
 
 constexpr size_t SIZE_DSM_BLOCKS_BYTES = 13;
 
-// OSNMA User ICD for the Test Phase, Issue 1.0, Table 2
+// OSNMA User ICD for the Test Phase, Issue 1.0, Table 1
+const std::unordered_map<uint8_t, std::string> OSNMA_TABLE_1 = {
+    {0, std::string("Reserved")},
+    {1, std::string("Test")},
+    {2, std::string("Operational")},
+    {3, std::string("Don't use")}};  // key: nmas, value: nmas status
+
+
+// OSNMA User ICD for the Test Phase, Issue 1.0, Table 1
 const std::unordered_map<uint8_t, std::string> OSNMA_TABLE_2 = {
     {0, std::string("Reserved")},
     {1, std::string("Nominal")},
     {2, std::string("End of Chain (EOC)")},
     {3, std::string("Chain Revoked (CREV)")},
-    {4, std::string("New Public Key (NPK)")},
-    {5, std::string("Public Key Revoked (PKREV)")},
-    {6, std::string("Reserved")},
-    {7, std::string("Reserved")}};  // key: cpks, value: Chain and Public Key Status
+    {4, std::string("Public Key Revoked (PKREV)")},
+    {5, std::string("Chain Revoked (CREV)")},
+    {6, std::string("New Merkle Tree (NMT)")},
+    {7, std::string("Alert Message (AM)")}};  // key: cpks, value: cpks status
 
 // OSNMA User ICD for the Test Phase, Issue 1.0, Table 3
 const std::unordered_map<uint8_t, std::pair<uint16_t, uint16_t>> OSNMA_TABLE_3 = {