Searched refs:linkAdrParams (Results 1 – 11 of 11) sorted by relevance
/loramac-node-3.4.0/src/mac/region/ |
D | RegionAU915.c | 574 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionAU915LinkAdrReq() local 587 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionAU915LinkAdrReq() 598 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionAU915LinkAdrReq() 606 channelsMask[4] = linkAdrParams.ChMask & CHANNELS_MASK_500KHZ_MASK; in RegionAU915LinkAdrReq() 608 else if( linkAdrParams.ChMaskCtrl == 7 ) in RegionAU915LinkAdrReq() 616 channelsMask[4] = linkAdrParams.ChMask & CHANNELS_MASK_500KHZ_MASK; in RegionAU915LinkAdrReq() 618 else if( linkAdrParams.ChMaskCtrl == 5 ) in RegionAU915LinkAdrReq() 631 if( ( ( linkAdrParams.ChMask & 0x00FF ) & ( bitMask << i ) ) != 0 ) in RegionAU915LinkAdrReq() 674 channelsMask[linkAdrParams.ChMaskCtrl] = linkAdrParams.ChMask; in RegionAU915LinkAdrReq() 679 … if( ( linkAdrParams.Datarate < DR_6 ) && ( RegionCommonCountChannels( channelsMask, 0, 4 ) < 2 ) ) in RegionAU915LinkAdrReq() [all …]
|
D | RegionUS915.c | 572 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionUS915LinkAdrReq() local 585 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionUS915LinkAdrReq() 596 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionUS915LinkAdrReq() 604 channelsMask[4] = linkAdrParams.ChMask & CHANNELS_MASK_500KHZ_MASK; in RegionUS915LinkAdrReq() 606 else if( linkAdrParams.ChMaskCtrl == 7 ) in RegionUS915LinkAdrReq() 614 channelsMask[4] = linkAdrParams.ChMask & CHANNELS_MASK_500KHZ_MASK; in RegionUS915LinkAdrReq() 616 else if( linkAdrParams.ChMaskCtrl == 5 ) in RegionUS915LinkAdrReq() 629 if( ( ( linkAdrParams.ChMask & 0x00FF ) & ( bitMask << i ) ) != 0 ) in RegionUS915LinkAdrReq() 672 channelsMask[linkAdrParams.ChMaskCtrl] = linkAdrParams.ChMask; in RegionUS915LinkAdrReq() 677 … if( ( linkAdrParams.Datarate < DR_4 ) && ( RegionCommonCountChannels( channelsMask, 0, 4 ) < 2 ) ) in RegionUS915LinkAdrReq() [all …]
|
D | RegionIN865.c | 570 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionIN865LinkAdrReq() local 581 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionIN865LinkAdrReq() 593 chMask = linkAdrParams.ChMask; in RegionIN865LinkAdrReq() 596 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionIN865LinkAdrReq() 600 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionIN865LinkAdrReq() 601 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionIN865LinkAdrReq() 610 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionIN865LinkAdrReq() 629 if( linkAdrParams.Datarate != DR_6 ) in RegionIN865LinkAdrReq() 638 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionIN865LinkAdrReq() 639 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionIN865LinkAdrReq() [all …]
|
D | RegionCN779.c | 556 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionCN779LinkAdrReq() local 567 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionCN779LinkAdrReq() 579 chMask = linkAdrParams.ChMask; in RegionCN779LinkAdrReq() 582 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionCN779LinkAdrReq() 586 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionCN779LinkAdrReq() 587 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionCN779LinkAdrReq() 596 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionCN779LinkAdrReq() 622 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionCN779LinkAdrReq() 623 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionCN779LinkAdrReq() 624 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionCN779LinkAdrReq() [all …]
|
D | RegionEU433.c | 556 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionEU433LinkAdrReq() local 567 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionEU433LinkAdrReq() 579 chMask = linkAdrParams.ChMask; in RegionEU433LinkAdrReq() 582 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionEU433LinkAdrReq() 586 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionEU433LinkAdrReq() 587 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionEU433LinkAdrReq() 596 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionEU433LinkAdrReq() 622 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionEU433LinkAdrReq() 623 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionEU433LinkAdrReq() 624 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionEU433LinkAdrReq() [all …]
|
D | RegionEU868.c | 587 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionEU868LinkAdrReq() local 598 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionEU868LinkAdrReq() 610 chMask = linkAdrParams.ChMask; in RegionEU868LinkAdrReq() 613 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionEU868LinkAdrReq() 617 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionEU868LinkAdrReq() 618 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionEU868LinkAdrReq() 627 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionEU868LinkAdrReq() 653 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionEU868LinkAdrReq() 654 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionEU868LinkAdrReq() 655 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionEU868LinkAdrReq() [all …]
|
D | RegionKR920.c | 552 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionKR920LinkAdrReq() local 563 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionKR920LinkAdrReq() 575 chMask = linkAdrParams.ChMask; in RegionKR920LinkAdrReq() 578 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionKR920LinkAdrReq() 582 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionKR920LinkAdrReq() 583 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionKR920LinkAdrReq() 592 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionKR920LinkAdrReq() 618 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionKR920LinkAdrReq() 619 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionKR920LinkAdrReq() 620 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionKR920LinkAdrReq() [all …]
|
D | RegionRU864.c | 555 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionRU864LinkAdrReq() local 566 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionRU864LinkAdrReq() 578 chMask = linkAdrParams.ChMask; in RegionRU864LinkAdrReq() 581 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionRU864LinkAdrReq() 585 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionRU864LinkAdrReq() 586 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionRU864LinkAdrReq() 595 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionRU864LinkAdrReq() 621 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionRU864LinkAdrReq() 622 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionRU864LinkAdrReq() 623 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionRU864LinkAdrReq() [all …]
|
D | RegionAS923.c | 654 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionAS923LinkAdrReq() local 665 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionAS923LinkAdrReq() 677 chMask = linkAdrParams.ChMask; in RegionAS923LinkAdrReq() 680 if( ( linkAdrParams.ChMaskCtrl == 0 ) && ( chMask == 0 ) ) in RegionAS923LinkAdrReq() 684 else if( ( ( linkAdrParams.ChMaskCtrl >= 1 ) && ( linkAdrParams.ChMaskCtrl <= 5 )) || in RegionAS923LinkAdrReq() 685 ( linkAdrParams.ChMaskCtrl >= 7 ) ) in RegionAS923LinkAdrReq() 694 if( linkAdrParams.ChMaskCtrl == 6 ) in RegionAS923LinkAdrReq() 720 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionAS923LinkAdrReq() 721 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionAS923LinkAdrReq() 722 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionAS923LinkAdrReq() [all …]
|
D | RegionCommon.c | 409 uint8_t RegionCommonParseLinkAdrReq( uint8_t* payload, RegionCommonLinkAdrParams_t* linkAdrParams ) in RegionCommonParseLinkAdrReq() argument 416 linkAdrParams->Datarate = payload[1]; in RegionCommonParseLinkAdrReq() 417 linkAdrParams->TxPower = linkAdrParams->Datarate & 0x0F; in RegionCommonParseLinkAdrReq() 418 linkAdrParams->Datarate = ( linkAdrParams->Datarate >> 4 ) & 0x0F; in RegionCommonParseLinkAdrReq() 420 linkAdrParams->ChMask = ( uint16_t )payload[2]; in RegionCommonParseLinkAdrReq() 421 linkAdrParams->ChMask |= ( uint16_t )payload[3] << 8; in RegionCommonParseLinkAdrReq() 423 linkAdrParams->NbRep = payload[4]; in RegionCommonParseLinkAdrReq() 424 linkAdrParams->ChMaskCtrl = ( linkAdrParams->NbRep >> 4 ) & 0x07; in RegionCommonParseLinkAdrReq() 425 linkAdrParams->NbRep &= 0x0F; in RegionCommonParseLinkAdrReq()
|
D | RegionCN470.c | 804 RegionCommonLinkAdrParams_t linkAdrParams = { 0 }; in RegionCN470LinkAdrReq() local 818 …extIndex = RegionCommonParseLinkAdrReq( &( linkAdrReq->Payload[bytesProcessed] ), &linkAdrParams ); in RegionCN470LinkAdrReq() 827 status = ChannelPlanCtx.LinkAdrChMaskUpdate( channelsMask, linkAdrParams.ChMaskCtrl, in RegionCN470LinkAdrReq() 828 … linkAdrParams.ChMask, RegionNvmGroup2->Channels ); in RegionCN470LinkAdrReq() 844 linkAdrVerifyParams.Datarate = linkAdrParams.Datarate; in RegionCN470LinkAdrReq() 845 linkAdrVerifyParams.TxPower = linkAdrParams.TxPower; in RegionCN470LinkAdrReq() 846 linkAdrVerifyParams.NbRep = linkAdrParams.NbRep; in RegionCN470LinkAdrReq() 860 …nkAdrReqVerifyParams( &linkAdrVerifyParams, &linkAdrParams.Datarate, &linkAdrParams.TxPower, &link… in RegionCN470LinkAdrReq() 877 *drOut = linkAdrParams.Datarate; in RegionCN470LinkAdrReq() 878 *txPowOut = linkAdrParams.TxPower; in RegionCN470LinkAdrReq() [all …]
|