summaryrefslogtreecommitdiff
path: root/cesar/bsu/inc/bsu.h
blob: 26606bad57db7ae8eae8daaaa91dedef7104d7c9 (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
#ifndef bsu_inc_bsu_h
#define bsu_inc_bsu_h
/* Cesar project {{{
 *
 * Copyright (C) 2010 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    bsu/inc/bsu.h
 * \brief   BSU core private functions.
 * \ingroup bsu
 */
#include "bsu/bsu.h"

BEGIN_DECLS

/**
 * Process the received beacon.
 * \param  ctx  the bsu context.
 * \param  beacon  the beacon received.
 * \param  params  the phy rx params.
 * \return  the beacon structure if the beacon is correct i.e. CRC ok.
 */
bsu_beacon_t*
bsu_beacon_process (bsu_t *ctx, pb_beacon_t *beacon,
                    pbproc_rx_beacon_params_t *params);

END_DECLS

#endif /* bsu_inc_bsu_h */