/* Presents I2C password, to authorize the I2C writes to protected areas.  */
int32_t ST25DV_PresentI2CPassword(ST25DV_Object_t *pObj, const ST25DV_PASSWD PassWord)
/* Presents I2C password, to authorize the I2C writes to protected areas.  */
int32_t ST25DV_PresentI2CPassword(ST25DV_Object_t *pObj, const ST25DV_PASSWD PassWord)
{
  uint8_t ai2c_message[17] = {0};
  uint8_t i;
  ai2c_message[8] = 0x09;
  for( i = 0; i < 4; i++ )
  {
    ai2c_message[i] = ( PassWord.MsbPasswd >> ( (3 - i) * 8) ) & 0xFF;
    ai2c_message[i + 4] = ( PassWord.LsbPasswd >> ( (3 - i) * 8) ) & 0xFF;
    ai2c_message[i + 9] = ai2c_message[i];
    ai2c_message[i + 13] = ai2c_message[i + 4];
  };
  return ST25DV_WriteRegister(pObj, ai2c_message, ST25DV_I2CPASSWD_REG, 17 );
}