summaryrefslogtreecommitdiff
path: root/cesar/bsu/bsu.h
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 09:38:52 +0000
committerlaranjeiro2010-05-17 09:38:52 +0000
commitf5a355cc8f70003a498f1414c8255ace115e6be6 (patch)
treee880ec0b68d33d15b7a0b1b12aeba6523b906c23 /cesar/bsu/bsu.h
parentec5cabf8246f4d99df4ad7bd59cd6283d8575e29 (diff)
cesar/bsu: add bsu params at the end of the beacon block,
* add pbproc_rx_beacon_params_t into bsu_params_t * change the callback params type. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7038 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/bsu.h')
-rw-r--r--cesar/bsu/bsu.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/cesar/bsu/bsu.h b/cesar/bsu/bsu.h
index 92c8e03666..9be8b2c61b 100644
--- a/cesar/bsu/bsu.h
+++ b/cesar/bsu/bsu.h
@@ -20,6 +20,7 @@
#include "mac/sar/sar.h"
#include "hal/timer/timer.h"
#include "bsu/beacon/beacon.h"
+#include "bsu/beacon/defs.h"
/** Forward declaration. */
typedef struct bsu_t bsu_t;
@@ -37,27 +38,27 @@ typedef enum bsu_beacon_direction_t bsu_beacon_direction_t;
/** BSU computed parameters. */
struct bsu_params_t
{
+ /** Pbproc RX parameters. */
+ pbproc_rx_beacon_params_t rx_parameters;
/** Direction */
bsu_beacon_direction_t direction;
/** Frequency error. */
s32 frequency_error;
/** Tick offset, difference between the NTB and PHY Date clock. */
- u32 tick_offset;
+ u32 ntb_offset_tck;
};
typedef struct bsu_params_t bsu_params_t;
/** Function to call on beacon reception or beacon sending.
* \param ctx upper layer context.
* \param beacon the beacon sent or received.
- * \param params the reception parameters contained in the Frame Control.
- * \param bparams the BSU computed data, set only if the BSU is the emitter.
+ * \param bparams the BSU computed data.
* \warn the upper layer is responsible for releasing the reference on the
* beacon.
*/
typedef void
(*bsu_beacon_processed_t) (void *ctx, pb_beacon_t *beacon,
- pbproc_rx_beacon_params_t *params,
- bsu_params_t bparams);
+ bsu_params_t *bparams);
BEGIN_DECLS