Lines Matching refs:nvm

3359 LoRaMacStatus_t RestoreNvmData( LoRaMacNvmData_t* nvm )  in RestoreNvmData()  argument
3364 if( nvm == NULL ) in RestoreNvmData()
3374 crc = Crc32( ( uint8_t* ) &nvm->Crypto, sizeof( nvm->Crypto ) - in RestoreNvmData()
3375 sizeof( nvm->Crypto.Crc32 ) ); in RestoreNvmData()
3376 if( crc == nvm->Crypto.Crc32 ) in RestoreNvmData()
3378 memcpy1( ( uint8_t* ) &Nvm.Crypto, ( uint8_t* ) &nvm->Crypto, in RestoreNvmData()
3383 crc = Crc32( ( uint8_t* ) &nvm->MacGroup1, sizeof( nvm->MacGroup1 ) - in RestoreNvmData()
3384 sizeof( nvm->MacGroup1.Crc32 ) ); in RestoreNvmData()
3385 if( crc == nvm->MacGroup1.Crc32 ) in RestoreNvmData()
3387 memcpy1( ( uint8_t* ) &Nvm.MacGroup1, ( uint8_t* ) &nvm->MacGroup1, in RestoreNvmData()
3392 crc = Crc32( ( uint8_t* ) &nvm->MacGroup2, sizeof( nvm->MacGroup2 ) - in RestoreNvmData()
3393 sizeof( nvm->MacGroup2.Crc32 ) ); in RestoreNvmData()
3394 if( crc == nvm->MacGroup2.Crc32 ) in RestoreNvmData()
3396 memcpy1( ( uint8_t* ) &Nvm.MacGroup2, ( uint8_t* ) &nvm->MacGroup2, in RestoreNvmData()
3408 crc = Crc32( ( uint8_t* ) &nvm->SecureElement, sizeof( nvm->SecureElement ) - in RestoreNvmData()
3409 sizeof( nvm->SecureElement.Crc32 ) ); in RestoreNvmData()
3410 if( crc == nvm->SecureElement.Crc32 ) in RestoreNvmData()
3412 memcpy1( ( uint8_t* ) &Nvm.SecureElement,( uint8_t* ) &nvm->SecureElement, in RestoreNvmData()
3417 crc = Crc32( ( uint8_t* ) &nvm->RegionGroup1, sizeof( nvm->RegionGroup1 ) - in RestoreNvmData()
3418 sizeof( nvm->RegionGroup1.Crc32 ) ); in RestoreNvmData()
3419 if( crc == nvm->RegionGroup1.Crc32 ) in RestoreNvmData()
3421 memcpy1( ( uint8_t* ) &Nvm.RegionGroup1,( uint8_t* ) &nvm->RegionGroup1, in RestoreNvmData()
3425 crc = Crc32( ( uint8_t* ) &nvm->ClassB, sizeof( nvm->ClassB ) - in RestoreNvmData()
3426 sizeof( nvm->ClassB.Crc32 ) ); in RestoreNvmData()
3427 if( crc == nvm->ClassB.Crc32 ) in RestoreNvmData()
3429 memcpy1( ( uint8_t* ) &Nvm.ClassB,( uint8_t* ) &nvm->ClassB, in RestoreNvmData()