#ifndef cp_beacon_inc_common_h #define cp_beacon_inc_common_h /* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \file cp2/beacon/inc/common.h * \brief Common structure definition. * \ingroup cp2_beacon * */ #include "cp2/beacon/beacon_desc.h" #include "mac/pbproc/pbproc.h" struct cp_beacon_common_t { /** * The beacon period start time offset address to provide it to the * pbproc. */ pbproc_tx_beacon_params_t *bpsto; /** * Number of beacon received. */ uint nb_beacon_recv; /** * Number of beacon failled. */ uint nb_beacon_failed; /** * The MFS to send the beacon. */ mfs_tx_t *mfs; /** * The ntb date corresponding to the last date a beacon has been sent * or received. */ uint last_beacon_ntb; }; typedef struct cp_beacon_common_t cp_beacon_common_t; /** * Initialise the context. * \param ctx the module context. * */ void cp_beacon_common_init (cp_beacon_common_t *ctx); /** * Uninitialise the context. * \param ctx the module context. * \param cp the CP module context to use the mac store to remove the MFS. */ void cp_beacon_common_uninit (cp_beacon_common_t *ctx, cp_t *cp); #endif /* cp_beacon_inc_common_h */