Lines Matching refs:nvm

3462 LoRaMacStatus_t RestoreNvmData( LoRaMacNvmData_t* nvm )  in RestoreNvmData()  argument
3467 if( nvm == NULL ) in RestoreNvmData()
3477 crc = Crc32( ( uint8_t* ) &nvm->Crypto, sizeof( nvm->Crypto ) - in RestoreNvmData()
3478 sizeof( nvm->Crypto.Crc32 ) ); in RestoreNvmData()
3479 if( crc == nvm->Crypto.Crc32 ) in RestoreNvmData()
3481 memcpy1( ( uint8_t* ) &Nvm.Crypto, ( uint8_t* ) &nvm->Crypto, in RestoreNvmData()
3486 crc = Crc32( ( uint8_t* ) &nvm->MacGroup1, sizeof( nvm->MacGroup1 ) - in RestoreNvmData()
3487 sizeof( nvm->MacGroup1.Crc32 ) ); in RestoreNvmData()
3488 if( crc == nvm->MacGroup1.Crc32 ) in RestoreNvmData()
3490 memcpy1( ( uint8_t* ) &Nvm.MacGroup1, ( uint8_t* ) &nvm->MacGroup1, in RestoreNvmData()
3495 crc = Crc32( ( uint8_t* ) &nvm->MacGroup2, sizeof( nvm->MacGroup2 ) - in RestoreNvmData()
3496 sizeof( nvm->MacGroup2.Crc32 ) ); in RestoreNvmData()
3497 if( crc == nvm->MacGroup2.Crc32 ) in RestoreNvmData()
3499 memcpy1( ( uint8_t* ) &Nvm.MacGroup2, ( uint8_t* ) &nvm->MacGroup2, in RestoreNvmData()
3516 crc = Crc32( ( uint8_t* ) &nvm->SecureElement, sizeof( nvm->SecureElement ) - in RestoreNvmData()
3517 sizeof( nvm->SecureElement.Crc32 ) ); in RestoreNvmData()
3518 if( crc == nvm->SecureElement.Crc32 ) in RestoreNvmData()
3520 memcpy1( ( uint8_t* ) &Nvm.SecureElement,( uint8_t* ) &nvm->SecureElement, in RestoreNvmData()
3525 crc = Crc32( ( uint8_t* ) &nvm->RegionGroup1, sizeof( nvm->RegionGroup1 ) - in RestoreNvmData()
3526 sizeof( nvm->RegionGroup1.Crc32 ) ); in RestoreNvmData()
3527 if( crc == nvm->RegionGroup1.Crc32 ) in RestoreNvmData()
3529 memcpy1( ( uint8_t* ) &Nvm.RegionGroup1,( uint8_t* ) &nvm->RegionGroup1, in RestoreNvmData()
3534 crc = Crc32( ( uint8_t* ) &nvm->RegionGroup2, sizeof( nvm->RegionGroup2 ) - in RestoreNvmData()
3535 sizeof( nvm->RegionGroup2.Crc32 ) ); in RestoreNvmData()
3536 if( crc == nvm->RegionGroup2.Crc32 ) in RestoreNvmData()
3538 memcpy1( ( uint8_t* ) &Nvm.RegionGroup2,( uint8_t* ) &nvm->RegionGroup2, in RestoreNvmData()
3542 crc = Crc32( ( uint8_t* ) &nvm->ClassB, sizeof( nvm->ClassB ) - in RestoreNvmData()
3543 sizeof( nvm->ClassB.Crc32 ) ); in RestoreNvmData()
3544 if( crc == nvm->ClassB.Crc32 ) in RestoreNvmData()
3546 memcpy1( ( uint8_t* ) &Nvm.ClassB,( uint8_t* ) &nvm->ClassB, in RestoreNvmData()