/** * Emit no error * @param context scpi context */ static void SCPI_ErrorEmitEmpty(scpi_t * context) { if ((SCPI_ErrorCount(context) == 0) && (SCPI_RegGet(context, SCPI_REG_STB) & STB_QMA)) { SCPI_RegClearBits(context, SCPI_REG_STB, STB_QMA); if (context->interface && context->interface->error) { context->interface->error(context, 0); } } }
/** * SYSTem:ERRor:COUNt? * @param context * @return */ scpi_result_t SCPI_SystemErrorCountQ(scpi_t * context) { SCPI_ResultInt32(context, SCPI_ErrorCount(context)); return SCPI_RES_OK; }