Mistake on this page?
Report an issue in GitHub or email us
Functions
whd_poll.h File Reference

Header for using WHD with no RTOS or network stack. More...

#include "whd.h"

Go to the source code of this file.

Functions

int8_t whd_thread_send_one_packet (whd_driver_t whd_driver)
 Sends the first queued packet. More...
 
int8_t whd_thread_receive_one_packet (whd_driver_t whd_driver)
 Receives a packet if one is waiting. More...
 
int8_t whd_thread_poll_all (whd_driver_t whd_driver)
 Sends and Receives all waiting packets. More...
 

Detailed Description

Header for using WHD with no RTOS or network stack.

It is possible to use these WHD without any operating system. To do this, the user application is required to periodically use the functions in this file to allow WHD to send and receive data across the SPI/SDIO bus.

Definition in file whd_poll.h.

Function Documentation

int8_t whd_thread_poll_all ( whd_driver_t  whd_driver)

Sends and Receives all waiting packets.

Repeatedly calls whd_thread_send_one_packet and whd_thread_receive_one_packet to send and receive packets, until there are no more packets waiting to be transferred.

This function is normally used by the WHD Thread, but can be called periodically by systems which have no RTOS to ensure packets get send and received properly.

Returns
1 : packet was sent or received 0 : no packet was sent or received
int8_t whd_thread_receive_one_packet ( whd_driver_t  whd_driver)

Receives a packet if one is waiting.

Checks the wifi chip fifo to determine if there is any packets waiting to be received. If there are, then it receives the first one, and calls the callback whd_sdpcm_process_rx_packet (in whd_sdpcm.c).

This function is normally used by the WHD Thread, but can be called periodically by systems which have no RTOS to ensure packets get received properly.

Returns
1 : packet was received 0 : no packet waiting
int8_t whd_thread_send_one_packet ( whd_driver_t  whd_driver)

Sends the first queued packet.

Checks the queue to determine if there is any packets waiting to be sent. If there are, then it sends the first one.

This function is normally used by the WHD Thread, but can be called periodically by systems which have no RTOS to ensure packets get sent.

Returns
1 : packet was sent 0 : no packet sent
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.