/* Returns the selected Global interrupt source pending bit value.  */
int32_t MFXSTM32L152_GlobalITStatus(MFXSTM32L152_Object_t *pObj, uint8_t Source)
/* Returns the selected Global interrupt source pending bit value.  */
int32_t MFXSTM32L152_GlobalITStatus(MFXSTM32L152_Object_t *pObj, uint8_t Source)
{
  int32_t ret;
  uint8_t tmp;
  uint8_t tmp1;
  if (mfxstm32l152_read_reg(&pObj->Ctx, MFXSTM32L152_REG_ADR_IRQ_PENDING, &tmp, 1) != MFXSTM32L152_OK)
  {
    ret = MFXSTM32L152_ERROR;
  }
  else
  {
    tmp1 = tmp & Source;
    ret = (int32_t)tmp1;
  }
  return ret;
}