MegaWiFi 1.5
MegaWiFi API documentation
mw_cmd Union Reference

Command sent to system FSM. More...

#include <mw-msg.h>

Data Fields

char packet [MW_CMD_MAX_BUFLEN+2 *sizeof(uint16_t)]
 Packet raw data. More...
 
struct {
   uint16_t   cmd
 Command code. More...
 
   uint16_t   data_len
 Data length. More...
 
   union {
      uint8_t   ch
 
      uint8_t   data [MW_CMD_MAX_BUFLEN]
 RAW data in uint8_t format. More...
 
      uint16_t   w_data [MW_CMD_MAX_BUFLEN/sizeof(uint16_t)]
 RAW data in uint16_t format. More...
 
      uint32_t   dw_data [MW_CMD_MAX_BUFLEN/sizeof(uint32_t)]
 RAW data in uint32_t format. More...
 
      struct mw_msg_in_addr   in_addr
 Internet address. More...
 
      struct mw_msg_ap_cfg   ap_cfg
 Access Point configuration. More...
 
      struct mw_msg_ip_cfg   ip_cfg
 IP configuration. More...
 
      struct mw_msg_sntp_cfg   sntp_cfg
 SNTP client configuration. More...
 
      struct mw_msg_date_time   date_time
 Date and time message. More...
 
      struct mw_msg_flash_data   fl_data
 Flash memory data. More...
 
      struct mw_msg_flash_range   fl_range
 Flash memory range. More...
 
      struct mw_msg_bind   bind
 Bind message. More...
 
      union mw_msg_sys_stat   sys_stat
 System status. More...
 
      struct mw_gamertag_set_msg   gamertag_set
 Gamertag set. More...
 
      struct mw_gamertag   gamertag_get
 Gamertag get. More...
 
      struct mw_wifi_adv_cfg   wifi_adv_cfg
 Advanced WiFi configuration. More...
 
      struct mw_flash_id   flash_id
 Flash chip identifiers. More...
 
      struct mw_ga_request   ga_request
 Game API request. More...
 
      uint16_t   fl_sect
 Flash sector. More...
 
      uint32_t   fl_id
 Flash IDs. More...
 
      uint16_t   rnd_len
 Length of the random buffer to fill. More...
 
   } 
 
}; 
 

Detailed Description

Command sent to system FSM.

Definition at line 310 of file mw-msg.h.

Field Documentation

◆ ap_cfg

struct mw_msg_ap_cfg mw_cmd::ap_cfg

Access Point configuration.

Definition at line 326 of file mw-msg.h.

◆ bind

struct mw_msg_bind mw_cmd::bind

Bind message.

Definition at line 332 of file mw-msg.h.

◆ ch

uint8_t mw_cmd::ch

Channel number for channel related requests

Definition at line 318 of file mw-msg.h.

◆ cmd

uint16_t mw_cmd::cmd

Command code.

Definition at line 313 of file mw-msg.h.

◆ data

uint8_t mw_cmd::data[MW_CMD_MAX_BUFLEN]

RAW data in uint8_t format.

Definition at line 320 of file mw-msg.h.

◆ data_len

uint16_t mw_cmd::data_len

Data length.

Definition at line 314 of file mw-msg.h.

◆ date_time

struct mw_msg_date_time mw_cmd::date_time

Date and time message.

Definition at line 329 of file mw-msg.h.

◆ dw_data

uint32_t mw_cmd::dw_data[MW_CMD_MAX_BUFLEN/sizeof(uint32_t)]

RAW data in uint32_t format.

Definition at line 324 of file mw-msg.h.

◆ fl_data

struct mw_msg_flash_data mw_cmd::fl_data

Flash memory data.

Definition at line 330 of file mw-msg.h.

◆ fl_id

uint32_t mw_cmd::fl_id

Flash IDs.

Definition at line 340 of file mw-msg.h.

◆ fl_range

struct mw_msg_flash_range mw_cmd::fl_range

Flash memory range.

Definition at line 331 of file mw-msg.h.

◆ fl_sect

uint16_t mw_cmd::fl_sect

Flash sector.

Definition at line 339 of file mw-msg.h.

◆ flash_id

struct mw_flash_id mw_cmd::flash_id

Flash chip identifiers.

Definition at line 337 of file mw-msg.h.

◆ ga_request

struct mw_ga_request mw_cmd::ga_request

Game API request.

Definition at line 338 of file mw-msg.h.

◆ gamertag_get

struct mw_gamertag mw_cmd::gamertag_get

Gamertag get.

Definition at line 335 of file mw-msg.h.

◆ gamertag_set

struct mw_gamertag_set_msg mw_cmd::gamertag_set

Gamertag set.

Definition at line 334 of file mw-msg.h.

◆ in_addr

struct mw_msg_in_addr mw_cmd::in_addr

Internet address.

Definition at line 325 of file mw-msg.h.

◆ ip_cfg

struct mw_msg_ip_cfg mw_cmd::ip_cfg

IP configuration.

Definition at line 327 of file mw-msg.h.

◆ packet

char mw_cmd::packet[MW_CMD_MAX_BUFLEN+2 *sizeof(uint16_t)]

Packet raw data.

Definition at line 311 of file mw-msg.h.

◆ rnd_len

uint16_t mw_cmd::rnd_len

Length of the random buffer to fill.

Definition at line 341 of file mw-msg.h.

◆ sntp_cfg

struct mw_msg_sntp_cfg mw_cmd::sntp_cfg

SNTP client configuration.

Definition at line 328 of file mw-msg.h.

◆ sys_stat

union mw_msg_sys_stat mw_cmd::sys_stat

System status.

Definition at line 333 of file mw-msg.h.

◆ w_data

uint16_t mw_cmd::w_data[MW_CMD_MAX_BUFLEN/sizeof(uint16_t)]

RAW data in uint16_t format.

Definition at line 322 of file mw-msg.h.

◆ wifi_adv_cfg

struct mw_wifi_adv_cfg mw_cmd::wifi_adv_cfg

Advanced WiFi configuration.

Definition at line 336 of file mw-msg.h.


The documentation for this union was generated from the following file: