Lines Matching refs:McSessionData

41 …       DBG( "ID          : %d\n", McSessionData[id].McGroupData.IdHeader.Fields.McGroupId );      \
42 … DBG( "McAddr : %08lX\n", McSessionData[id].McGroupData.McAddr ); \
43 … DBG( "McKey : %02X", McSessionData[id].McGroupData.McKeyEncrypted[0] ); \
46 … DBG( "-%02X", McSessionData[id].McGroupData.McKeyEncrypted[i] ); \
49 … DBG( "McFCountMin : %lu\n", McSessionData[id].McGroupData.McFCountMin ); \
50 … DBG( "McFCountMax : %lu\n", McSessionData[id].McGroupData.McFCountMax ); \
53 … DBG( "SessionTime : %lu\n", McSessionData[id].SessionTime ); \
54 … DBG( "SessionTimeT: %d\n", McSessionData[id].SessionTimeout ); \
55 … if( McSessionData[id].RxParams.Class == CLASS_B ) \
57 … DBG( "Rx Freq : %lu\n", McSessionData[id].RxParams.Params.ClassB.Frequency ); \
58 … DBG( "Rx DR : DR_%d\n", McSessionData[id].RxParams.Params.ClassB.Datarate ); \
59 … DBG( "Periodicity : %u\n", McSessionData[id].RxParams.Params.ClassB.Periodicity ); \
63 … DBG( "Rx Freq : %lu\n", McSessionData[id].RxParams.Params.ClassC.Frequency ); \
64 … DBG( "Rx DR : DR_%d\n", McSessionData[id].RxParams.Params.ClassC.Datarate ); \
200 McSessionData_t McSessionData[LORAMAC_MAX_MC_CTX]; variable
277 TimerSetValue( &SessionStopTimer, ( 1 << McSessionData[0].SessionTimeout ) * 1000 ); in LmhpRemoteMcastSetupProcess()
323 McSessionData[id].McGroupData.IdHeader.Value = id; in LmhpRemoteMcastSetupOnMcpsIndication()
327McSessionData[id].McGroupData.McAddr = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x000000FF; in LmhpRemoteMcastSetupOnMcpsIndication()
328McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000FF00; in LmhpRemoteMcastSetupOnMcpsIndication()
329McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF0000; in LmhpRemoteMcastSetupOnMcpsIndication()
330McSessionData[id].McGroupData.McAddr += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF000000; in LmhpRemoteMcastSetupOnMcpsIndication()
334McSessionData[id].McGroupData.McKeyEncrypted[i] = mcpsIndication->Buffer[cmdIndex++]; in LmhpRemoteMcastSetupOnMcpsIndication()
337McSessionData[id].McGroupData.McFCountMin = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
338McSessionData[id].McGroupData.McFCountMin += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
339McSessionData[id].McGroupData.McFCountMin += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF… in LmhpRemoteMcastSetupOnMcpsIndication()
340McSessionData[id].McGroupData.McFCountMin += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF00… in LmhpRemoteMcastSetupOnMcpsIndication()
342McSessionData[id].McGroupData.McFCountMax = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
343McSessionData[id].McGroupData.McFCountMax += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000… in LmhpRemoteMcastSetupOnMcpsIndication()
344McSessionData[id].McGroupData.McFCountMax += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF… in LmhpRemoteMcastSetupOnMcpsIndication()
345McSessionData[id].McGroupData.McFCountMax += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF00… in LmhpRemoteMcastSetupOnMcpsIndication()
351 … .GroupID = ( AddressIdentifier_t )McSessionData[id].McGroupData.IdHeader.Fields.McGroupId, in LmhpRemoteMcastSetupOnMcpsIndication()
352 .Address = McSessionData[id].McGroupData.McAddr, in LmhpRemoteMcastSetupOnMcpsIndication()
353 .McKeys.McKeyE = McSessionData[id].McGroupData.McKeyEncrypted, in LmhpRemoteMcastSetupOnMcpsIndication()
354 .FCountMin = McSessionData[id].McGroupData.McFCountMin, in LmhpRemoteMcastSetupOnMcpsIndication()
355 .FCountMax = McSessionData[id].McGroupData.McFCountMax, in LmhpRemoteMcastSetupOnMcpsIndication()
370 …oteMcastSetupState.DataBuffer[dataBufferIndex++] = ( idError << 2 ) | McSessionData[id].McGroupDat… in LmhpRemoteMcastSetupOnMcpsIndication()
399 McSessionData[id].RxParams.Class = CLASS_C; in LmhpRemoteMcastSetupOnMcpsIndication()
401McSessionData[id].SessionTime = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x000000FF; in LmhpRemoteMcastSetupOnMcpsIndication()
402McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000FF00; in LmhpRemoteMcastSetupOnMcpsIndication()
403McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF0000; in LmhpRemoteMcastSetupOnMcpsIndication()
404McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF000000; in LmhpRemoteMcastSetupOnMcpsIndication()
407 McSessionData[id].SessionTime += UNIX_GPS_EPOCH_OFFSET; in LmhpRemoteMcastSetupOnMcpsIndication()
409 McSessionData[id].SessionTimeout = mcpsIndication->Buffer[cmdIndex++] & 0x0F; in LmhpRemoteMcastSetupOnMcpsIndication()
411McSessionData[id].RxParams.Params.ClassC.Frequency = ( mcpsIndication->Buffer[cmdIndex++] << 0 )… in LmhpRemoteMcastSetupOnMcpsIndication()
412McSessionData[id].RxParams.Params.ClassC.Frequency |= ( mcpsIndication->Buffer[cmdIndex++] << 8 )… in LmhpRemoteMcastSetupOnMcpsIndication()
413McSessionData[id].RxParams.Params.ClassC.Frequency |= ( mcpsIndication->Buffer[cmdIndex++] << 16 )… in LmhpRemoteMcastSetupOnMcpsIndication()
414 McSessionData[id].RxParams.Params.ClassC.Frequency *= 100; in LmhpRemoteMcastSetupOnMcpsIndication()
415McSessionData[id].RxParams.Params.ClassC.Datarate = mcpsIndication->Buffer[cmdIndex++]; in LmhpRemoteMcastSetupOnMcpsIndication()
417 …if( LoRaMacMcChannelSetupRxParams( ( AddressIdentifier_t )id, &McSessionData[id].RxParams, &status… in LmhpRemoteMcastSetupOnMcpsIndication()
422 timeToSessionStart = McSessionData[id].SessionTime - curTime.Seconds; in LmhpRemoteMcastSetupOnMcpsIndication()
465 McSessionData[id].RxParams.Class = CLASS_B; in LmhpRemoteMcastSetupOnMcpsIndication()
467McSessionData[id].SessionTime = ( mcpsIndication->Buffer[cmdIndex++] << 0 ) & 0x000000FF; in LmhpRemoteMcastSetupOnMcpsIndication()
468McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 8 ) & 0x0000FF00; in LmhpRemoteMcastSetupOnMcpsIndication()
469McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 16 ) & 0x00FF0000; in LmhpRemoteMcastSetupOnMcpsIndication()
470McSessionData[id].SessionTime += ( mcpsIndication->Buffer[cmdIndex++] << 24 ) & 0xFF000000; in LmhpRemoteMcastSetupOnMcpsIndication()
473 McSessionData[id].SessionTime += UNIX_GPS_EPOCH_OFFSET; in LmhpRemoteMcastSetupOnMcpsIndication()
475McSessionData[id].RxParams.Params.ClassB.Periodicity = ( mcpsIndication->Buffer[cmdIndex] >> 4 ) &… in LmhpRemoteMcastSetupOnMcpsIndication()
476 McSessionData[id].SessionTimeout = mcpsIndication->Buffer[cmdIndex++] & 0x0F; in LmhpRemoteMcastSetupOnMcpsIndication()
478McSessionData[id].RxParams.Params.ClassB.Frequency = ( mcpsIndication->Buffer[cmdIndex++] << 0 )… in LmhpRemoteMcastSetupOnMcpsIndication()
479McSessionData[id].RxParams.Params.ClassB.Frequency |= ( mcpsIndication->Buffer[cmdIndex++] << 8 )… in LmhpRemoteMcastSetupOnMcpsIndication()
480McSessionData[id].RxParams.Params.ClassB.Frequency |= ( mcpsIndication->Buffer[cmdIndex++] << 16 )… in LmhpRemoteMcastSetupOnMcpsIndication()
481 McSessionData[id].RxParams.Params.ClassB.Frequency *= 100; in LmhpRemoteMcastSetupOnMcpsIndication()
482McSessionData[id].RxParams.Params.ClassB.Datarate = mcpsIndication->Buffer[cmdIndex++]; in LmhpRemoteMcastSetupOnMcpsIndication()
484 …if( LoRaMacMcChannelSetupRxParams( ( AddressIdentifier_t )id, &McSessionData[id].RxParams, &status… in LmhpRemoteMcastSetupOnMcpsIndication()
489 timeToSessionStart = McSessionData[id].SessionTime - curTime.Seconds; in LmhpRemoteMcastSetupOnMcpsIndication()