/* Cesar project {{{ * * Copyright (C) 2007 Spidcom * * <<>> * * }}} */ /** * \file tx.c * \brief « brief description » * \ingroup « module » * * « long description » */ #include "common/std.h" #include #include "ce/inc/tx.h" #define TXCE #include "ce/inc/cei.h" txce_t ctx; tonemaps_t tms; txce_t * txce_init (mac_store_t *mac_store_ctx, mac_config_t *mac_config_ctx) { dbg_assert (mac_store_ctx); dbg_assert (mac_config_ctx); ctx.mac_store_ctx = mac_store_ctx; ctx.tonemask = mac_config_ctx->tonemask_info.tonemask; return (&ctx); } void txce_rcv_mme (uint stei, u32 mmtype, u8 *mm_entry) { dbg_assert (mm_entry); dbg_assert (mmtype == CM_CHAN_EST_IND || mmtype == CM_TM_UPDATE_IND); dbg_assert (stei); // get concerned tonemaps from stei sta_t *source_sta = mac_store_sta_get (ctx.mac_store_ctx, stei); tonemaps_t *source_tms = source_sta->tx_tonemaps; cei_decoding (source_tms, mmtype, mm_entry, ctx.tonemask); blk_release (source_sta); }