summaryrefslogtreecommitdiff
path: root/mac/sar/test/inc/reassembly_unit_test_functions.h
blob: 77382aeb6458a3efce8af99bbdea8edbbd0d6cc0 (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
43
44
45
46
47
48
49
50
51
52
#ifndef REASSEMBLY_UNIT_TEST_FUNCTIONS_H_
#define REASSEMBLY_UNIT_TEST_FUNCTIONS_H_

/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    reassembly_unit_test_functions.h
 * \brief   test to verify the mfs processing function
 * \ingroup mac/sar/inc
 *
 */

#include "lib/blk.h"
#include "mac/sar/test/inc/reassembly_unit_test_functions.h"

uint list[12] = { 283, 241, 1231, 169, 227, 393, 82, 1499, 240, 1186, 185};

void test_sar_rx_noise_cb (void *user, const pbproc_rx_params_t *rx_params,
        phy_chandata_t *first);

/**
 * Release the MFS in the store
 * Release the MFS from the SAR
 * Remove the STA from the Store
 * 
 * Uninit the store
 */
void sar_unit_test_uninit_reassembly_tests (mfs_t * mfs);

/**
 * Initialize the Reassembly test generating a list of PBs.
 */
void sar_unit_test_generate_pb_list (pb_t **first, pb_t **last);

void sar_unit_test_generate_mme_pb_list (pb_t **first, pb_t **last);

/**
 * Implementation of the sar_reassembly_done_cb_t call back.
 * Only used in this test.
 * 
 * \param  user User data
 * \param  buffer the buffer to reassembly the data
 * \param  length the buffer length.
 */
void sar_reassembly_done (void *user, u8* buffer, uint length, mfs_rx_t *mfs);

#endif /*REASSEMBLY_UNIT_TEST_FUNCTIONS_H_*/