Exportable version of WizziLab's modem driver.

Dependents:   modem_ref_helper

Revision:
29:9c8c46206eab
Parent:
23:5553f9541759
Child:
35:ac940cf8ebe6
--- a/include/cup.h	Tue Mar 13 14:50:46 2018 +0000
+++ b/include/cup.h	Wed May 16 11:14:32 2018 +0000
@@ -57,6 +57,57 @@
     u32 dbg_cfg;
 } cup_cfg_t;
 
+//======================================================================
+// cup_cfg_bcast_header_t
+//----------------------------------------------------------------------
+/// @brief CUP broadcast configuration header (RAM file)
+/// !! Do NOT touch this except if you're a CUP Master !!
+//======================================================================
+TYPEDEF_STRUCT_PACKED
+{
+    /// Bitmap start offset. Will differ from the
+    /// CUP offset if the first chunk(s) are not received
+    u32 start;
+    /// Transfer length. Will differ from the CUP length 
+    /// if the last chunk(s) are not received.
+    u32 len;
+    /// Transfer command / status
+    u16 cmd;
+    /// Chunk size used to generate the bitmap.
+    /// It is assumed that all chunks except the last 
+    /// have the same size
+    u8  chunk;
+    /// CUP timeout in seconds
+    u8  to;
+    /// new signature (command)
+    u32 sig_new;
+    /// current signature (status)
+    u32 sig_curr;
+    /// missed
+    u16 missed;
+    // RFU
+    u8  rfu;
+    /// signature status
+    u8  crc_ok;
+
+} cup_cfg_bcast_header_t;
+
+//======================================================================
+// cup_cfg_bcast_t
+//----------------------------------------------------------------------
+/// @brief CUP broadcast configuration (RAM file)
+/// !! Do NOT touch this except if you're a CUP Master !!
+//======================================================================
+#define CUP_STATUS_BITMAP_LEN       (128)
+TYPEDEF_STRUCT_PACKED
+{
+    /// CUP broadcast configuration header
+    cup_cfg_bcast_header_t header;
+    /// Bitmap buffer
+    u8  bitmap[CUP_STATUS_BITMAP_LEN];
+
+} cup_cfg_bcast_t;
+
 #endif // __CUP_H__
 /// @}
 // vim:fdm=marker:fdc=2