/* Reads the EH_ON status from the EH_CTRL_DYN register.  */
int32_t ST25DV_GetEHON_Dyn(ST25DV_Object_t *pObj, ST25DV_EN_STATUS *const pEHON)
/* Reads the EH_ON status from the EH_CTRL_DYN register.  */
int32_t ST25DV_GetEHON_Dyn(ST25DV_Object_t *pObj, ST25DV_EN_STATUS *const pEHON)
{
  int32_t status;
  uint8_t reg_value = 0;
  status = st25dv_get_eh_ctrl_dyn_eh_on(&(pObj->Ctx), &reg_value);
  if( status == ST25DV_OK )
  {
    if( reg_value )
    {
      *pEHON = ST25DV_ENABLE;
    }
    else
    {
      *pEHON = ST25DV_DISABLE;
    }
  }
  return status;
}