So, I am polling the value of interrupt on common Reg Address (0x0015) and checking which socket received interrupt.
Then I read value of interrupt on socket reg address, and checking if RECV bit is set. if it is set, I am clearing a bit by writing (1<<2) on interrupt register.
And after that I read rx received size register 0x0*26 (0x0426 for socket 0). But I always read 0, even though I sent the character. I dont have pending interrupt after that, cause recv bit is reset, until next char of course. So, apart from actual reading of buffer, interrupts are working properly
Found the bug … totally retarded one. I was actually reading socket1 instead of socket0
It is working now, at least the size of buffer, now I need to do the actual reading, but I have feeling it should be the same as sending something …