summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/inc
diff options
context:
space:
mode:
authordufour2009-07-16 09:13:20 +0000
committerdufour2009-07-16 09:13:20 +0000
commit3a694cd8c015ddb7888f49f589b06c655bdec652 (patch)
treed5eb8cf4899f6af74e759507a62d21dbb2c53ccf /cesar/ce/rx/inc
parentb158eb75227dfcee44602f32bfb9ae30cb678493 (diff)
* ce/rx, common/tests, cp/sta/core
- move all cp part of the CE RX in the ce/rx/cp sub-modules (with the stub), - update test build system, - update cp/sta/core build. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4978 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/inc')
-rw-r--r--cesar/ce/rx/inc/cp.h120
-rw-r--r--cesar/ce/rx/inc/rx.h2
2 files changed, 1 insertions, 121 deletions
diff --git a/cesar/ce/rx/inc/cp.h b/cesar/ce/rx/inc/cp.h
deleted file mode 100644
index b92bf2aaf5..0000000000
--- a/cesar/ce/rx/inc/cp.h
+++ /dev/null
@@ -1,120 +0,0 @@
-#ifndef ce_rx_inc_cp_h
-#define ce_rx_inc_cp_h
-/* Cesar project {{{
- *
- * Copyright (C) 2009 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file ce/rx/inc/cp.h
- * \brief Interface to use the CE RX in the CP context (private part).
- * \ingroup ce_rx
- *
- * This header contains the private part of the functions used for the
- * interface between the communication of the CP and the CE RX.
- *
- * This functions must be called in the context of the CE RX and are used to
- * set-up the works that must be executed by the CP.
- */
-
-#include "lib/mbox.h"
-#include "cp/types.h"
-
-/**
- * Mailbox used for the exchange of work between the CE RX and the CP.
- * The work that can be posted from the CE RX to the CP is quite simple:
- * sending MME to the peer. It can be divided into two sub-parts:
- * - sending a tone map,
- * - preventing tone map expiration on the other side (by sending a refresh).
- * The information contains in this node are enough to send a tone map
- * (pointed with the tone map index) to a peer (pointed by its TEI).
- *
- * When the CP process a mail, the state of the structure tone maps has maybe
- * changed (the CE RX can maybe generate multiple tone maps and during this
- * time, the CP has maybe not process our mail). That's why, the mail contains
- * some copy of the fields of the tone maps structure (default TMI, TMI list
- * and intervals list).
- */
-typedef struct ce_rx_cp_mbox_t
-{
- /**
- * The mailbox node.
- */
- mbox_node_t mbox_node;
- /**
- * The TEI of the peer.
- */
- cp_tei_t tei;
- /**
- * Default TMI.
- */
- u8 default_tmi;
- /**
- * The list of valid tone map index.
- * This field is a bit field (bit is set to one when the tone map is
- * active).
- */
- u32 tmi_list;
- /**
- * List of valid intervals.
- */
- tonemap_intervals_t intervals_list;
- /**
- * The tone map index.
- * If this field is set to 0, no tone map should be sent, just a refresh
- * MME (to prevent tone maps expiration).
- */
- u8 new_tmi;
- /**
- * The old tone map index.
- * When the bit loading of the CE RX creates a new tone map based on an
- * old one, it can give an hint on the tone map index used.
- */
- u8 old_tmi;
- /**
- * Initial CE?
- */
- bool initial_ce;
-} ce_rx_cp_mbox_t;
-
-BEGIN_DECLS
-
-/**
- * Initialize the communication between the CE RX and the CP.
- * \param ce_rx the CE RX context.
- */
-void
-ce_rx_cp_init (ce_rx_t *ce_rx);
-
-/**
- * Uninitialize the communication between the CE RX and the CP.
- * \param ce_rx the CE RX context.
- */
-void
-ce_rx_cp_uninit (ce_rx_t *ce_rx);
-
-/**
- * Add work for the CP from the CE RX context.
- * \param ce_rx the context of the CE in RX.
- * \param peer the peer STA.
- * \param new_tmi the new TMI of the tone map to send.
- * \param old_tmi the old TMI used (if there is one, 0 otherwise).
- * \param initial_ce initial channel estimation?
- */
-void
-ce_rx_cp_send_mme_new_tone_map (ce_rx_t *ce_rx, sta_t *peer, u8 new_tmi,
- u8 old_tmi, bool initial_ce);
-
-/**
- * Add work to prevent expirations of the valid tone maps list of a peer.
- * \param ce_rx the context of the CE in RX.
- * \param peer the peer STA.
- */
-void
-ce_rx_cp_send_mme_refresh_tmi_list (ce_rx_t *ce_rx, sta_t *peer);
-
-END_DECLS
-
-#endif /* ce_rx_inc_cp_h */
diff --git a/cesar/ce/rx/inc/rx.h b/cesar/ce/rx/inc/rx.h
index 7e875eebab..80018e8f2a 100644
--- a/cesar/ce/rx/inc/rx.h
+++ b/cesar/ce/rx/inc/rx.h
@@ -23,7 +23,7 @@
#include <cyg/hal/hal_arch.h>
#include "ce/rx/rx.h"
-#include "ce/rx/cp.h"
+#include "ce/rx/cp/cp.h"
#include "common/defs/priority.h"