AGIS includ the function: AgsiRequestInterrupt but why not include UnRequest function? some time we need dismiss the request.
"why not include UnRequest function?"
What would you have it do?
"some time we need dismiss the request."
give an example?
When the Int0 is configurable as active-low level-sensitive, and a instrument by FIFO Serial connected to 8051, interrupt request by INT0. when the FIFO is not empty(not read over by 8051) , INT0 may keep Low level.
My AGSI dll simulate the instrument, so when FIFO is not empty, I need RequestInterrupt Keeping until FIFO empty, then I need UnRequestInterrupt.
otherwise, many MCU, such as C8051F120, the connection Pin of INT0 can configurable,and when software simulation, Keil can't know which one is connnected to INT0, so We can't Request Interrupt by set the pin Level, only by AgsiRequestInterrupt, and hoping the AgsiUnRequestInterrupt function.
and then AgsiRequestInterrupt needs two params,as: BOOL AgsiRequestInterrupt(WORD nNumber, BOOL bPersistence) nNumber is the Interrupt Number bPersistence: when is True ,means, keep the request persistence,until unrequest it. when is False, means, Request one, until processed.