GS2101M IP2WiFi Adapter Command Reference Guide
1VV0301499
Rev. 2.0
56
2019-08-05
3.2.3.2.5 Host Read Sequence
When GS node writes data to the Host, it receives read interrupt. Upon receiving the
interrupt following steps should be performed by the HOST.
•
Check 'Interrupt Pending' register.
- Read Interrupt Pending register (function 0 address 0x05)
- If value is '0x02', it means there is an interrupt pending.
•
Clear interrupt by reading ‘Int Enable’ register
- Read ‘Int Enable’ register (function 1 address 0x04) using CMD52).
•
Re-Check 'Interrupt Pending' register to make sure interrupt has been cleared
- Read Interrupt Pending register (function 0 address 0x05)
- If value is '0x00', it means there is no pending interrupt.
•
Read the data count (using CMD52).
– Read the value at address 0x1C with function 1, say len1
– Read the value at address 0x1D with function 1, say len2
– Compute the actual data length to be read using the following logic
act_len = len1| (len2 << 8);
•
Read the data (using CMD53).
Figure 11 SDIO Block (Multiple) Read Operation
3.2.3.2.6 Host Write Sequence
•
Check if the SDIO medium is available or not, by checking the ‘SDIO DAT0’ line.
–
If LOW, keep polling till ‘SDIO DAT0’ goes HIGH