summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/test/vector.h
diff options
context:
space:
mode:
authordufour2009-07-22 12:36:31 +0000
committerdufour2009-07-22 12:36:31 +0000
commit85511598df31f0b78c6fb8377ee9a5c62985b0c7 (patch)
treeeba053c00269926da8443cc78c6551e153436210 /cesar/ce/rx/bitloading/test/vector.h
parent8fbaa7a88290b01754593afacac5343a4fc88eed (diff)
* ce/rx/bitloading:
- add functions to convert test vectors to channel data and to compare them with a block of data, - add tests to check sum and mean on NSR are correctly computed. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5057 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/bitloading/test/vector.h')
-rw-r--r--cesar/ce/rx/bitloading/test/vector.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/cesar/ce/rx/bitloading/test/vector.h b/cesar/ce/rx/bitloading/test/vector.h
new file mode 100644
index 0000000000..74f8295605
--- /dev/null
+++ b/cesar/ce/rx/bitloading/test/vector.h
@@ -0,0 +1,42 @@
+#ifndef ce_rx_bitloading_test_vector_h
+#define ce_rx_bitloading_test_vector_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file ce/rx/bitloading/test/vector.h
+ * \brief Convert test vector to channel data.
+ * \ingroup test
+ */
+
+#include "hal/phy/pbdma.h"
+#include "lib/test.h"
+
+/**
+ * Generate channel data from test vector.
+ * \param vector test vector.
+ * \param column column to use.
+ * \param nb_column number of column in this vector.
+ * \return the channel data.
+ */
+phy_chandata_t *
+ce_rx_bl_test_vector_to_chan_data (const u32 *vector, u8 column, u8 nb_column);
+
+/**
+ * Compare a test vector and some chained blocks.
+ * \param t test context.
+ * \param vector test vector to compare.
+ * \param column column to use.
+ * \param nb_column number of column in this vector.
+ * \param blk the chained blocks to compare.
+ * \param blk_count the count of blocks.
+ */
+void
+ce_rx_bl_test_vector_cmp_chan_data (test_t t, const u32 *vector, u8 column,
+ u8 nb_column, blk_t *blk, u32 blk_count);
+
+#endif /* ce_rx_bitloading_test_vector_h */