#ifndef mac_common_sta_h #define mac_common_sta_h /* Cesar project {{{ * * Copyright (C) 2007 Spidcom * * <<>> * * }}} */ /** * \file mac/common/sta.h * \brief Information about a peer. * \ingroup mac_common */ #include "mac/common/tonemap.h" #include "ce/rxce_stats.h" /** Station information. Must be < BLK_SIZE. */ struct sta_t { /** terminal equipment id */ uint tei; /** Original Destination Address. */ u8 mac_address[6]; /** Tonemaps for transmission. */ tonemaps_t *tx_tonemaps; /** Tonemaps for reception. */ tonemaps_t *rx_tonemaps; /** channel estimation status, statistics, and temporary computation. */ rxce_processing_t rxce; }; typedef struct sta_t sta_t; /** * Initialise a station, called from MAC store. * \param sta STA to initialise * \param tei TEI */ void sta_init (sta_t *sta, uint tei); /** * Release the blocks pointed by the sta_t * \param sta Sta to uninit. * * Release the tonemaps,the set of tonemaps allocated during the existence of * the sta.( with eventually the tm_in_build used by Channel Estimation). */ void sta_uninit (sta_t *sta); #endif /* mac_common_sta_h */