/* Reads the status of the security session open register.  */
int32_t ST25DV_ReadI2CSecuritySession_Dyn(ST25DV_Object_t *pObj, ST25DV_I2CSSO_STATUS *const pSession)
/* Reads the status of the security session open register.  */
int32_t ST25DV_ReadI2CSecuritySession_Dyn(ST25DV_Object_t *pObj, ST25DV_I2CSSO_STATUS *const pSession)
{
  uint8_t reg_value;
  int32_t status;
  status = st25dv_get_i2c_sso_dyn_i2csso(&(pObj->Ctx), &reg_value);
  if( status == ST25DV_OK )
  {
    if( reg_value )
    {
      *pSession = ST25DV_SESSION_OPEN;
    }
    else
    {
      *pSession = ST25DV_SESSION_CLOSED;
    }
  }
  return status;
}