Declaration:
extern int LastMemAccType;
This is the microcontroller memory access type that caused a return from the WaitMemoryAccess function. For example, MA_READ, MA_WRITE or a combination of them.