/* Locks the CCile to prevent any RF write access. 
Needs the I2C Password presentation to be effective.  */
int32_t ST25DV_WriteLockCCFile(ST25DV_Object_t *pObj, const ST25DV_CCFILE_BLOCK NbBlockCCFile, const ST25DV_LOCK_STATUS LockCCFile)
/* Locks the CCile to prevent any RF write access. 
Needs the I2C Password presentation to be effective.  */
int32_t ST25DV_WriteLockCCFile(ST25DV_Object_t *pObj, const ST25DV_CCFILE_BLOCK NbBlockCCFile, const ST25DV_LOCK_STATUS LockCCFile)
{
  uint8_t reg_value;
  if( NbBlockCCFile == ST25DV_CCFILE_1BLCK )
  {
    if( LockCCFile == ST25DV_LOCKED )
    {
      reg_value = ST25DV_LOCKCCFILE_BLCK0_MASK;
    }
    else
    {
      reg_value = 0x00;
    }
  }
  else
  {
    if( LockCCFile == ST25DV_LOCKED )
    {
      reg_value = ST25DV_LOCKCCFILE_BLCK0_MASK | ST25DV_LOCKCCFILE_BLCK1_MASK;
    }
    else
    {
      reg_value = 0x00;
    }
  }
  return st25dv_set_lockccfile_all( &(pObj->Ctx), &reg_value);
}