Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 1373a5f

Browse files
author
Arto Kinnunen
authored
Clarify parameter name in phy_csma_params_t (ARMmbed#1773)
Rename symbol_backoff_time to backoff_time.
1 parent 4a32a6c commit 1373a5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nanostack/platform/arm_hal_phy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ typedef struct phy_signal_info_s {
120120

121121
/** CSMA-CA parameters */
122122
typedef struct phy_csma_params {
123-
uint32_t symbol_backoff_time; /**< CSMA Backoff symbol time before start CCA & TX. 0 should disable current backoff*/
123+
uint32_t backoff_time; /**< CSMA Backoff us time before start CCA & TX. 0 should disable current backoff*/
124124
bool cca_enabled; /**< True will affect CCA check false start TX direct after backoff */
125125
} phy_csma_params_t;
126126

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
17301730
}
17311731
//Disable TX Time
17321732
phy_csma_params_t csma_params;
1733-
csma_params.symbol_backoff_time = 0;
1733+
csma_params.backoff_time = 0;
17341734
csma_params.cca_enabled = false;
17351735
rf_ptr->dev_driver->phy_driver->extension(PHY_EXTENSION_SET_CSMA_PARAMETERS, (uint8_t*) &csma_params);
17361736
if (rf_ptr->active_pd_data_request) {

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void mac_pd_sap_set_phy_tx_time(protocol_interface_rf_mac_setup_s *rf_mac_setup,
190190
tx_time++;
191191
}
192192
phy_csma_params_t csma_params;
193-
csma_params.symbol_backoff_time = tx_time;
193+
csma_params.backoff_time = tx_time;
194194
csma_params.cca_enabled = cca_enabled;
195195
rf_mac_setup->dev_driver->phy_driver->extension(PHY_EXTENSION_SET_CSMA_PARAMETERS, (uint8_t*) &csma_params);
196196
}

0 commit comments

Comments
 (0)