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... | |
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.
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.
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.
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.