/loramac-node-latest/src/radio/sx126x/ |
D | radio.c | 127 uint32_t datarate, uint8_t coderate, 170 uint32_t bandwidth, uint32_t datarate, 210 uint32_t datarate, uint8_t coderate, 639 uint32_t datarate, uint8_t coderate, in RadioSetRxConfig() argument 667 SX126x.ModulationParams.Params.Gfsk.BitRate = datarate; in RadioSetRxConfig() 695 RxTimeout = ( uint32_t )symbTimeout * 8000UL / datarate; in RadioSetRxConfig() 701 … SX126x.ModulationParams.Params.LoRa.SpreadingFactor = ( RadioLoRaSpreadingFactors_t )datarate; in RadioSetRxConfig() 705 if( ( ( bandwidth == 0 ) && ( ( datarate == 11 ) || ( datarate == 12 ) ) ) || in RadioSetRxConfig() 706 ( ( bandwidth == 1 ) && ( datarate == 12 ) ) ) in RadioSetRxConfig() 765 uint32_t bandwidth, uint32_t datarate, in RadioSetTxConfig() argument [all …]
|
/loramac-node-latest/src/radio/lr1110/ |
D | radio.c | 128 void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth, uint32_t datarate, uint8_t coderate, 168 …tTxConfig( RadioModems_t modem, int8_t power, uint32_t fdev, uint32_t bandwidth, uint32_t datarate, 207 uint32_t datarate, uint8_t coderate, 601 void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth, uint32_t datarate, uint8_t coderate, in RadioSetRxConfig() argument 626 LR1110.modulation_params.modulation.gfsk.bitrate = datarate; in RadioSetRxConfig() 657 RxTimeout = ( uint32_t )symbTimeout * 8000UL / datarate; in RadioSetRxConfig() 664 … LR1110.modulation_params.modulation.lora.spreading_factor = ( lr1110_radio_lora_sf_t ) datarate; in RadioSetRxConfig() 668 if( ( ( bandwidth == 0 ) && ( ( datarate == 11 ) || ( datarate == 12 ) ) ) || in RadioSetRxConfig() 669 ( ( bandwidth == 1 ) && ( datarate == 12 ) ) ) in RadioSetRxConfig() 714 …tTxConfig( RadioModems_t modem, int8_t power, uint32_t fdev, uint32_t bandwidth, uint32_t datarate, in RadioSetTxConfig() argument [all …]
|
/loramac-node-latest/src/mac/ |
D | LoRaMacAdr.c | 41 int8_t datarate = adrNext->Datarate; in LoRaMacAdrCalcNext() local 58 datarate = MAX( datarate, minTxDatarate ); in LoRaMacAdrCalcNext() 81 if( datarate == minTxDatarate ) in LoRaMacAdrCalcNext() 97 getPhy.Datarate = datarate; in LoRaMacAdrCalcNext() 100 datarate = phyParam.Value; in LoRaMacAdrCalcNext() 105 *drOut = datarate; in LoRaMacAdrCalcNext()
|
/loramac-node-latest/src/radio/sx1272/ |
D | sx1272.c | 178 uint32_t datarate, uint8_t coderate, 419 uint32_t datarate, uint8_t coderate, in SX1272SetRxConfig() argument 435 SX1272.Settings.Fsk.Datarate = datarate; in SX1272SetRxConfig() 443 SX1272.Settings.Fsk.RxSingleTimeout = ( uint32_t )symbTimeout * 8000UL / datarate; in SX1272SetRxConfig() 445 uint32_t bitRate = ( uint32_t )( SX1272_XTAL_FREQ / datarate ); in SX1272SetRxConfig() 476 SX1272.Settings.LoRa.Datarate = datarate; in SX1272SetRxConfig() 487 if( datarate > 12 ) in SX1272SetRxConfig() 489 datarate = 12; in SX1272SetRxConfig() 491 else if( datarate < 6 ) in SX1272SetRxConfig() 493 datarate = 6; in SX1272SetRxConfig() [all …]
|
D | sx1272.h | 261 uint32_t datarate, uint8_t coderate, 304 uint32_t bandwidth, uint32_t datarate, 336 uint32_t datarate, uint8_t coderate,
|
/loramac-node-latest/src/radio/sx1276/ |
D | sx1276.c | 186 uint32_t datarate, uint8_t coderate, 470 uint32_t datarate, uint8_t coderate, in SX1276SetRxConfig() argument 486 SX1276.Settings.Fsk.Datarate = datarate; in SX1276SetRxConfig() 494 SX1276.Settings.Fsk.RxSingleTimeout = ( uint32_t )symbTimeout * 8000UL / datarate; in SX1276SetRxConfig() 496 uint32_t bitRate = ( uint32_t )( SX1276_XTAL_FREQ / datarate ); in SX1276SetRxConfig() 533 SX1276.Settings.LoRa.Datarate = datarate; in SX1276SetRxConfig() 544 if( datarate > 12 ) in SX1276SetRxConfig() 546 datarate = 12; in SX1276SetRxConfig() 548 else if( datarate < 6 ) in SX1276SetRxConfig() 550 datarate = 6; in SX1276SetRxConfig() [all …]
|
D | sx1276.h | 263 uint32_t datarate, uint8_t coderate, 308 uint32_t bandwidth, uint32_t datarate, 340 uint32_t datarate, uint8_t coderate,
|
/loramac-node-latest/src/mac/region/ |
D | Region.c | 44 …W_PARAMETERS( ) AS923_CASE { RegionAS923ComputeRxWindowParameters( datarate, minRxSymbols, rx… 45 …_CONFIG( ) AS923_CASE { return RegionAS923RxConfig( rxConfig, datarate ); } 93 …W_PARAMETERS( ) AU915_CASE { RegionAU915ComputeRxWindowParameters( datarate, minRxSymbols, rx… 94 …_CONFIG( ) AU915_CASE { return RegionAU915RxConfig( rxConfig, datarate ); } 142 …W_PARAMETERS( ) CN470_CASE { RegionCN470ComputeRxWindowParameters( datarate, minRxSymbols, rx… 143 …_CONFIG( ) CN470_CASE { return RegionCN470RxConfig( rxConfig, datarate ); } 191 …W_PARAMETERS( ) CN779_CASE { RegionCN779ComputeRxWindowParameters( datarate, minRxSymbols, rx… 192 …_CONFIG( ) CN779_CASE { return RegionCN779RxConfig( rxConfig, datarate ); } 240 …W_PARAMETERS( ) EU433_CASE { RegionEU433ComputeRxWindowParameters( datarate, minRxSymbols, rx… 241 …_CONFIG( ) EU433_CASE { return RegionEU433RxConfig( rxConfig, datarate ); } [all …]
|
D | RegionUS915.c | 49 static int8_t LimitTxPower( int8_t txPower, int8_t maxBandTxPower, int8_t datarate, uint16_t* chann… in LimitTxPower() argument 56 if( datarate == DR_4 ) in LimitTxPower() 94 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 96 int8_t phyDr = DataratesUS915[datarate]; in GetTimeOnAir() 97 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsUS915 ); in GetTimeOnAir() 500 void RegionUS915ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionUS915ComputeRxWindowParameters() argument 505 rxConfigParams->Datarate = MIN( datarate, US915_RX_MAX_DATARATE ); in RegionUS915ComputeRxWindowParameters() 513 bool RegionUS915RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionUS915RxConfig() argument 540 *datarate = (uint8_t) dr; in RegionUS915RxConfig() 905 int8_t datarate = DatarateOffsetsUS915[dr][drOffset]; in RegionUS915ApplyDrOffset() local [all …]
|
D | RegionCommon.c | 382 int8_t datarate = verifyParams->Datarate; in RegionCommonLinkAdrReqVerifyParams() local 391 datarate = verifyParams->CurrentDatarate; in RegionCommonLinkAdrReqVerifyParams() 398 if( datarate == 0x0F ) in RegionCommonLinkAdrReqVerifyParams() 400 datarate = verifyParams->CurrentDatarate; in RegionCommonLinkAdrReqVerifyParams() 402 … else if( RegionCommonChanVerifyDr( verifyParams->NbChannels, verifyParams->ChannelsMask, datarate, in RegionCommonLinkAdrReqVerifyParams() 437 *dr = datarate; in RegionCommonLinkAdrReqVerifyParams() 474 uint8_t datarate; in RegionCommonRxBeaconSetup() local 490 datarate = rxBeaconSetupParams->Datarates[rxBeaconSetupParams->BeaconDatarate]; in RegionCommonRxBeaconSetup() 493 Radio.SetRxConfig( MODEM_LORA, rxBeaconSetupParams->BeaconChannelBW, datarate, in RegionCommonRxBeaconSetup()
|
D | RegionRU864.c | 62 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 64 int8_t phyDr = DataratesRU864[datarate]; in GetTimeOnAir() 65 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsRU864 ); in GetTimeOnAir() 68 if( datarate == DR_7 ) in GetTimeOnAir() 451 void RegionRU864ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionRU864ComputeRxWindowParameters() argument 456 rxConfigParams->Datarate = MIN( datarate, RU864_RX_MAX_DATARATE ); in RegionRU864ComputeRxWindowParameters() 471 bool RegionRU864RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionRU864RxConfig() argument 513 *datarate = (uint8_t) dr; in RegionRU864RxConfig() 903 int8_t datarate = dr - drOffset; in RegionRU864ApplyDrOffset() local 905 if( datarate < 0 ) in RegionRU864ApplyDrOffset() [all …]
|
D | RegionEU433.c | 61 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 63 int8_t phyDr = DataratesEU433[datarate]; in GetTimeOnAir() 64 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsEU433 ); in GetTimeOnAir() 67 if( datarate == DR_7 ) in GetTimeOnAir() 452 void RegionEU433ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionEU433ComputeRxWindowParameters() argument 457 rxConfigParams->Datarate = MIN( datarate, EU433_RX_MAX_DATARATE ); in RegionEU433ComputeRxWindowParameters() 472 bool RegionEU433RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionEU433RxConfig() argument 514 *datarate = (uint8_t) dr; in RegionEU433RxConfig() 904 int8_t datarate = dr - drOffset; in RegionEU433ApplyDrOffset() local 906 if( datarate < 0 ) in RegionEU433ApplyDrOffset() [all …]
|
D | RegionEU868.c | 86 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 88 int8_t phyDr = DataratesEU868[datarate]; in GetTimeOnAir() 89 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsEU868 ); in GetTimeOnAir() 92 if( datarate == DR_7 ) in GetTimeOnAir() 483 void RegionEU868ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionEU868ComputeRxWindowParameters() argument 488 rxConfigParams->Datarate = MIN( datarate, EU868_RX_MAX_DATARATE ); in RegionEU868ComputeRxWindowParameters() 503 bool RegionEU868RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionEU868RxConfig() argument 545 *datarate = (uint8_t) dr; in RegionEU868RxConfig() 938 int8_t datarate = dr - drOffset; in RegionEU868ApplyDrOffset() local 940 if( datarate < 0 ) in RegionEU868ApplyDrOffset() [all …]
|
D | RegionIN865.c | 61 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 63 int8_t phyDr = DataratesIN865[datarate]; in GetTimeOnAir() 64 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsIN865 ); in GetTimeOnAir() 67 if( datarate == DR_7 ) in GetTimeOnAir() 466 void RegionIN865ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionIN865ComputeRxWindowParameters() argument 471 rxConfigParams->Datarate = MIN( datarate, IN865_RX_MAX_DATARATE ); in RegionIN865ComputeRxWindowParameters() 486 bool RegionIN865RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionIN865RxConfig() argument 528 *datarate = (uint8_t) dr; in RegionIN865RxConfig() 927 int8_t datarate = EffectiveRx1DrOffsetIN865[dr][drOffset]; in RegionIN865ApplyDrOffset() local 929 if( ( datarate < 0 ) || ( dr == DR_6 ) ) in RegionIN865ApplyDrOffset() [all …]
|
D | RegionAU915.c | 74 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 76 int8_t phyDr = DataratesAU915[datarate]; in GetTimeOnAir() 77 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsAU915 ); in GetTimeOnAir() 503 void RegionAU915ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionAU915ComputeRxWindowParameters() argument 508 rxConfigParams->Datarate = MIN( datarate, AU915_RX_MAX_DATARATE ); in RegionAU915ComputeRxWindowParameters() 516 bool RegionAU915RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionAU915RxConfig() argument 543 *datarate = (uint8_t) dr; in RegionAU915RxConfig() 907 int8_t datarate = DatarateOffsetsAU915[dr][drOffset]; in RegionAU915ApplyDrOffset() local 909 if( datarate < 0 ) in RegionAU915ApplyDrOffset() 913 datarate = AU915_TX_MIN_DATARATE; in RegionAU915ApplyDrOffset() [all …]
|
D | RegionCN779.c | 61 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 63 int8_t phyDr = DataratesCN779[datarate]; in GetTimeOnAir() 64 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsCN779 ); in GetTimeOnAir() 67 if( datarate == DR_7 ) in GetTimeOnAir() 452 void RegionCN779ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionCN779ComputeRxWindowParameters() argument 457 rxConfigParams->Datarate = MIN( datarate, CN779_RX_MAX_DATARATE ); in RegionCN779ComputeRxWindowParameters() 472 bool RegionCN779RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionCN779RxConfig() argument 514 *datarate = (uint8_t) dr; in RegionCN779RxConfig() 904 int8_t datarate = dr - drOffset; in RegionCN779ApplyDrOffset() local 906 if( datarate < 0 ) in RegionCN779ApplyDrOffset() [all …]
|
D | RegionKR920.c | 96 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 98 int8_t phyDr = DataratesKR920[datarate]; in GetTimeOnAir() 99 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsKR920 ); in GetTimeOnAir() 485 void RegionKR920ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionKR920ComputeRxWindowParameters() argument 490 rxConfigParams->Datarate = MIN( datarate, KR920_RX_MAX_DATARATE ); in RegionKR920ComputeRxWindowParameters() 498 bool RegionKR920RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionKR920RxConfig() argument 529 *datarate = (uint8_t) dr; in RegionKR920RxConfig() 929 int8_t datarate = dr - drOffset; in RegionKR920ApplyDrOffset() local 931 if( datarate < 0 ) in RegionKR920ApplyDrOffset() 933 datarate = DR_0; in RegionKR920ApplyDrOffset() [all …]
|
D | RegionCN470.c | 286 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 288 int8_t phyDr = DataratesCN470[datarate]; in GetTimeOnAir() 289 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsCN470 ); in GetTimeOnAir() 705 void RegionCN470ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionCN470ComputeRxWindowParameters() argument 710 rxConfigParams->Datarate = MIN( datarate, CN470_RX_MAX_DATARATE ); in RegionCN470ComputeRxWindowParameters() 718 bool RegionCN470RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionCN470RxConfig() argument 762 *datarate = (uint8_t) dr; in RegionCN470RxConfig() 1012 int8_t datarate = DatarateOffsetsCN470[dr][drOffset]; in RegionCN470ApplyDrOffset() local 1014 if( datarate < 0 ) in RegionCN470ApplyDrOffset() 1016 datarate = DR_0; in RegionCN470ApplyDrOffset() [all …]
|
D | RegionAS923.c | 227 static TimerTime_t GetTimeOnAir( int8_t datarate, uint16_t pktLen ) in GetTimeOnAir() argument 229 int8_t phyDr = DataratesAS923[datarate]; in GetTimeOnAir() 230 uint32_t bandwidth = RegionCommonGetBandwidth( datarate, BandwidthsAS923 ); in GetTimeOnAir() 233 if( datarate == DR_7 ) in GetTimeOnAir() 661 void RegionAS923ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… in RegionAS923ComputeRxWindowParameters() argument 666 rxConfigParams->Datarate = MIN( datarate, AS923_RX_MAX_DATARATE ); in RegionAS923ComputeRxWindowParameters() 681 bool RegionAS923RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate ) in RegionAS923RxConfig() argument 723 *datarate = (uint8_t) dr; in RegionAS923RxConfig()
|
D | RegionRU864.h | 305 void RegionRU864ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… 316 bool RegionRU864RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate );
|
D | RegionCN779.h | 309 void RegionCN779ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… 320 bool RegionCN779RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate );
|
D | RegionEU433.h | 310 void RegionEU433ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… 321 bool RegionEU433RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate );
|
D | RegionKR920.h | 312 void RegionKR920ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… 323 bool RegionKR920RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate );
|
D | RegionUS915.h | 302 void RegionUS915ComputeRxWindowParameters( int8_t datarate, uint8_t minRxSymbols, uint32_t rxError,… 313 bool RegionUS915RxConfig( RxConfigParams_t* rxConfig, int8_t* datarate );
|
/loramac-node-latest/src/radio/ |
D | radio.h | 204 uint32_t datarate, uint8_t coderate, 246 uint32_t bandwidth, uint32_t datarate, 284 uint32_t datarate, uint8_t coderate,
|