summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/test/vector.h
blob: 74f8295605bb49fd9efe858796c4601d45f052ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 */