/************************************************ * Description: Pass the data to phy layer, assume * header format is preprocessed by mac_fill_mhr() * * Arguments: * None. * Return: * None. * * Date: 2010-05-20 ***********************************************/ static void mac_tx_data() { // If mac idle? if (mac_tx_idle()) { // Start tx, set busy flags. mac_set_tx_busy(); } // Hand to phy layer phy_tx_data(); }
bool phy_tx(phy_tx_cfg_t* cfg) { if (init_and_close_radio) { if (!phy_init_tx()) { return false; } //if (last_tx_cfg.spectrum_id != cfg->spectrum_id || last_tx_cfg.sync_word_class != cfg->sync_word_class || last_tx_cfg.eirp != cfg->eirp) if (memcmp(&last_tx_cfg, cfg, 3) != 0) { if (!phy_set_tx(cfg)) return false; memcpy(&last_tx_cfg, cfg, 3); } } return phy_tx_data(cfg); }