Home
last modified time | relevance | path

Searched refs:txConfig (Results 1 – 23 of 23) sorted by relevance

/loramac-node-latest/src/mac/region/
DRegionRU864.c517 bool RegionRU864TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionRU864TxConfig() argument
520 int8_t phyDr = DataratesRU864[txConfig->Datarate]; in RegionRU864TxConfig()
521 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionRU864TxConfig()
522 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsRU864 ); in RegionRU864TxConfig()
526 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionRU864TxConfig()
529 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionRU864TxConfig()
531 if( txConfig->Datarate == DR_7 ) in RegionRU864TxConfig()
543 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionRU864TxConfig()
546 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionRU864TxConfig()
DRegionEU433.c518 bool RegionEU433TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionEU433TxConfig() argument
521 int8_t phyDr = DataratesEU433[txConfig->Datarate]; in RegionEU433TxConfig()
522 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionEU433TxConfig()
523 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsEU433 ); in RegionEU433TxConfig()
527 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionEU433TxConfig()
530 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionEU433TxConfig()
532 if( txConfig->Datarate == DR_7 ) in RegionEU433TxConfig()
544 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionEU433TxConfig()
547 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionEU433TxConfig()
DRegionEU868.c549 bool RegionEU868TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionEU868TxConfig() argument
552 int8_t phyDr = DataratesEU868[txConfig->Datarate]; in RegionEU868TxConfig()
553 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionEU868TxConfig()
554 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsEU868 ); in RegionEU868TxConfig()
558 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionEU868TxConfig()
561 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionEU868TxConfig()
563 if( txConfig->Datarate == DR_7 ) in RegionEU868TxConfig()
575 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionEU868TxConfig()
578 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionEU868TxConfig()
DRegionIN865.c532 bool RegionIN865TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionIN865TxConfig() argument
535 int8_t phyDr = DataratesIN865[txConfig->Datarate]; in RegionIN865TxConfig()
536 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionIN865TxConfig()
537 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsIN865 ); in RegionIN865TxConfig()
541 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionIN865TxConfig()
544 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionIN865TxConfig()
546 if( txConfig->Datarate == DR_7 ) in RegionIN865TxConfig()
558 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionIN865TxConfig()
561 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionIN865TxConfig()
DRegionCN779.c518 bool RegionCN779TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionCN779TxConfig() argument
521 int8_t phyDr = DataratesCN779[txConfig->Datarate]; in RegionCN779TxConfig()
522 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionCN779TxConfig()
523 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsCN779 ); in RegionCN779TxConfig()
527 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionCN779TxConfig()
530 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionCN779TxConfig()
532 if( txConfig->Datarate == DR_7 ) in RegionCN779TxConfig()
544 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionCN779TxConfig()
547 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionCN779TxConfig()
DRegionKR920.c533 bool RegionKR920TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionKR920TxConfig() argument
535 int8_t phyDr = DataratesKR920[txConfig->Datarate]; in RegionKR920TxConfig()
536 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionKR920TxConfig()
537 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsKR920 ); in RegionKR920TxConfig()
538 float maxEIRP = GetMaxEIRP( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionKR920TxConfig()
543 maxEIRP = MIN( txConfig->MaxEirp, maxEIRP ); in RegionKR920TxConfig()
546 phyTxPower = RegionCommonComputeTxPower( txPowerLimited, maxEIRP, txConfig->AntennaGain ); in RegionKR920TxConfig()
549 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionKR920TxConfig()
554 Radio.SetMaxPayloadLength( MODEM_LORA, txConfig->PktLen ); in RegionKR920TxConfig()
556 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionKR920TxConfig()
DRegionAS923.c727 bool RegionAS923TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionAS923TxConfig() argument
730 int8_t phyDr = DataratesAS923[txConfig->Datarate]; in RegionAS923TxConfig()
731 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionAS923TxConfig()
732 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsAS923 ); in RegionAS923TxConfig()
736 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionAS923TxConfig()
739 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionAS923TxConfig()
741 if( txConfig->Datarate == DR_7 ) in RegionAS923TxConfig()
753 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionAS923TxConfig()
756 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionAS923TxConfig()
DRegionCN470.c766 bool RegionCN470TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionCN470TxConfig() argument
769 int8_t phyDr = DataratesCN470[txConfig->Datarate]; in RegionCN470TxConfig()
770 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionCN470TxConfig()
771 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsCN470 ); in RegionCN470TxConfig()
775 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionCN470TxConfig()
778 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionCN470TxConfig()
780 if( txConfig->Datarate == DR_7 ) in RegionCN470TxConfig()
792 Radio.SetMaxPayloadLength( modem, txConfig->PktLen ); in RegionCN470TxConfig()
794 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionCN470TxConfig()
DRegionAU915.c547 bool RegionAU915TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionAU915TxConfig() argument
549 int8_t phyDr = DataratesAU915[txConfig->Datarate]; in RegionAU915TxConfig()
550 … txPowerLimited = RegionCommonLimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channe… in RegionAU915TxConfig()
551 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsAU915 ); in RegionAU915TxConfig()
555 …phyTxPower = RegionCommonComputeTxPower( txPowerLimited, txConfig->MaxEirp, txConfig->AntennaGain … in RegionAU915TxConfig()
558 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionAU915TxConfig()
563 Radio.SetMaxPayloadLength( MODEM_LORA, txConfig->PktLen ); in RegionAU915TxConfig()
565 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionAU915TxConfig()
DRegionUS915.c544 bool RegionUS915TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir ) in RegionUS915TxConfig() argument
546 int8_t phyDr = DataratesUS915[txConfig->Datarate]; in RegionUS915TxConfig()
547 …rLimited = LimitTxPower( txConfig->TxPower, RegionBands[RegionNvmGroup2->Channels[txConfig->Channe… in RegionUS915TxConfig()
548 uint32_t bandwidth = RegionCommonGetBandwidth( txConfig->Datarate, BandwidthsUS915 ); in RegionUS915TxConfig()
555 Radio.SetChannel( RegionNvmGroup2->Channels[txConfig->Channel].Frequency ); in RegionUS915TxConfig()
560 Radio.SetMaxPayloadLength( MODEM_LORA, txConfig->PktLen ); in RegionUS915TxConfig()
563 *txTimeOnAir = GetTimeOnAir( txConfig->Datarate, txConfig->PktLen ); in RegionUS915TxConfig()
DRegion.c46 …FIG( ) AS923_CASE { return RegionAS923TxConfig( txConfig, txPower, txTimeO…
95 …FIG( ) AU915_CASE { return RegionAU915TxConfig( txConfig, txPower, txTimeO…
144 …FIG( ) CN470_CASE { return RegionCN470TxConfig( txConfig, txPower, txTimeO…
193 …FIG( ) CN779_CASE { return RegionCN779TxConfig( txConfig, txPower, txTimeO…
242 …FIG( ) EU433_CASE { return RegionEU433TxConfig( txConfig, txPower, txTimeO…
291 …FIG( ) EU868_CASE { return RegionEU868TxConfig( txConfig, txPower, txTimeO…
340 …FIG( ) KR920_CASE { return RegionKR920TxConfig( txConfig, txPower, txTimeO…
389 …FIG( ) IN865_CASE { return RegionIN865TxConfig( txConfig, txPower, txTimeO…
438 …FIG( ) US915_CASE { return RegionUS915TxConfig( txConfig, txPower, txTimeO…
487 …FIG( ) RU864_CASE { return RegionRU864TxConfig( txConfig, txPower, txTimeO…
[all …]
DRegionRU864.h329 bool RegionRU864TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionCN779.h333 bool RegionCN779TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionEU433.h334 bool RegionEU433TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionKR920.h336 bool RegionKR920TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionUS915.h326 bool RegionUS915TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionEU868.h362 bool RegionEU868TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionAU915.h346 bool RegionAU915TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionIN865.h351 bool RegionIN865TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionCN470.h343 bool RegionCN470TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegionAS923.h411 bool RegionAS923TxConfig( TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
DRegion.h1008 bool RegionTxConfig( LoRaMacRegion_t region, TxConfigParams_t* txConfig, int8_t* txPower, TimerTime…
/loramac-node-latest/src/mac/
DLoRaMac.c3388 TxConfigParams_t txConfig; in SendFrameOnChannel() local
3391 txConfig.Channel = channel; in SendFrameOnChannel()
3392 txConfig.Datarate = Nvm.MacGroup1.ChannelsDatarate; in SendFrameOnChannel()
3393 txConfig.TxPower = Nvm.MacGroup1.ChannelsTxPower; in SendFrameOnChannel()
3394 txConfig.MaxEirp = Nvm.MacGroup2.MacParams.MaxEirp; in SendFrameOnChannel()
3395 txConfig.AntennaGain = Nvm.MacGroup2.MacParams.AntennaGain; in SendFrameOnChannel()
3396 txConfig.PktLen = MacCtx.PktBufferLen; in SendFrameOnChannel()
3398 RegionTxConfig( Nvm.MacGroup2.Region, &txConfig, &txPower, &MacCtx.TxTimeOnAir ); in SendFrameOnChannel()