API Messages

Protocol

WF200 uses a classic request/confirmation and indication protocol to communicate with the host as shown below.

WF200 Communication Mechanism

HOST to WF200

A message sent by the host is a request and is always answered back with a confirmation. This confirmation systematically informs the host of the status of the request.

WF200 to HOST

On top of sending back confirmations, WF200 is sending indication messages (e.g. packet reveiced, connection established...). The host is notified through an interrupt that information is available. Depending on the configuration register setting, the interrupt is issued on the standard GPIO (GPIO 29 WF200 Hardware Overview) or on WIRQ pin (pin 24).

Message Header Format

Message header is a 32bit word starting every messages sent or received by WF200. Below is a diagram to present the header content.

WF200 Message Header

The structure used to describe the message header can be found in the firmware header file in HiMsgHdr_t.