13.1.2 Frame Receive

The following figure shows the steps and states involved in sending a message from the WINC device to the host.

Figure 13-4. HIF Frame Receive from WINC to Host
Table 13-2. Steps in HIF Frame Receive from WINC to Host
StepDescription
Step (1) Wake up the WINC deviceWake up the device to be able to receive host requests.
Step (2) Check for Interrupt

Monitor BIT [0] of WIFI_HOST_RCV_CTRL_0 register.

Disable the host from receiving interrupts (until this interrupt is processed).

Step (3) Clear interruptWrite zero to BIT [0] of WIFI_HOST_RCV_CTRL_0 register.
Step (4) Read data

Get the address of the data block from WIFI_HOST_RCV_CTRL_1 register.

Read data block with size obtained from WIFI_HOST_RCV_CTRL_0 register BIT [13] <-> BIT [2].

Step (5) Process RequestParse the HIF header at the start of the data and forward the data to the appropriate registered Callback function.
Step (6) HOST RX Done

Raise an interrupt for the chip to free the memory holding the data by setting BIT [1] of WIFI_HOST_RCV_CTRL_0 register.

Enable host interrupt reception again.

Step (7) Allow the WINC device to SleepAllow the WINC device to enter Sleep mode again (if it wishes).