/* Sets the end address of an area. 
Needs the I2C Password presentation to be effective.  */
int32_t ST25DV_WriteEndZonex(ST25DV_Object_t *pObj, const ST25DV_END_ZONE EndZone, const uint8_t EndZ)
/* Sets the end address of an area. 
Needs the I2C Password presentation to be effective.  */
int32_t ST25DV_WriteEndZonex(ST25DV_Object_t *pObj, const ST25DV_END_ZONE EndZone, const uint8_t EndZ)
{
  int32_t status;  
  switch( EndZone )
  {
    case ST25DV_ZONE_END1:
      status = st25dv_set_enda1(&(pObj->Ctx),&EndZ);
      break;
    case ST25DV_ZONE_END2:
      status = st25dv_set_enda2(&(pObj->Ctx),&EndZ);
      break;
    case ST25DV_ZONE_END3:
      status = st25dv_set_enda3(&(pObj->Ctx),&EndZ);
      break;
    default:
      status = ST25DV_ERROR;
  }
  return status;
}