summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/inc/fsm_top.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/pbproc/inc/fsm_top.h')
-rw-r--r--cesar/mac/pbproc/inc/fsm_top.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/cesar/mac/pbproc/inc/fsm_top.h b/cesar/mac/pbproc/inc/fsm_top.h
new file mode 100644
index 0000000000..3e52053b43
--- /dev/null
+++ b/cesar/mac/pbproc/inc/fsm_top.h
@@ -0,0 +1,44 @@
+#ifndef mac_pbproc_inc_fsm_top_h
+#define mac_pbproc_inc_fsm_top_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file mac/pbproc/inc/fsm_top.h
+ * \brief FSM top part, handle idle and generic transitions.
+ * \ingroup mac_pbproc
+ */
+
+BEGIN_DECLS
+
+/**
+ * Initialise FSM top part.
+ * \param ctx pbproc context
+ */
+void
+pbproc_ftop_init (pbproc_t *ctx);
+
+/**
+ * IDLE =RX=FC=>.
+ * \param ctx pbproc context
+ * \param rx_date start of preamble date
+ * \param fc_av frame control, or NULL if FCCS error
+ */
+void
+pbproc_ftop__idle__rx_fc (pbproc_t *ctx, u32 rx_date,
+ const pbproc_fc_t *fc_av);
+
+/**
+ * IDLE =ACCESS=>.
+ * \param ctx pbproc context
+ */
+void
+pbproc_ftop__idle__access (pbproc_t *ctx);
+
+END_DECLS
+
+#endif /* mac_pbproc_inc_fsm_top_h */