SGDK
A free and open development kit for the Sega Mega Drive
|
MegaWiFi command message definitions. More...
Classes | |
union | ip_addr |
IPv4 address. More... | |
struct | mw_msg_in_addr |
TCP/UDP address message. More... | |
struct | mw_ip_cfg |
IP configuration parameters. More... | |
struct | mw_msg_ap_cfg |
AP configuration message. More... | |
struct | mw_msg_ip_cfg |
IP configuration message. More... | |
struct | mw_msg_sntp_cfg |
SNTP and timezone configuration. More... | |
struct | mw_msg_date_time |
Date and time message. More... | |
struct | mw_msg_flash_data |
Flash memory address and data. More... | |
struct | mw_msg_flash_range |
Flash memory block. More... | |
struct | mw_msg_bind |
Bind message data. More... | |
struct | mw_wifi_adv_cfg |
Advanced WiFi configuration. More... | |
struct | mw_gamertag |
Gamertag data. More... | |
struct | mw_gamertag_set_msg |
Gamertag set message data. More... | |
union | mw_msg_sys_stat |
System status. More... | |
struct | mw_flash_id |
Flash chip identifiers. More... | |
struct | mw_ga_request |
Game API request. More... | |
struct | mw_ping_request |
struct | mw_ping_response |
struct | mw_upgrade_list_response |
union | mw_cmd |
Command sent to system FSM. More... | |
struct | mw_reuse_payload |
Payload with remote IP and port. More... |
Macros | |
#define | MW_MSG_MAX_BUFLEN 512 |
Maximum buffer length (bytes) | |
#define | MW_CMD_HEADLEN (2 * sizeof(uint16_t)) |
Command header length (command code and data length fields). | |
#define | MW_CMD_MAX_BUFLEN (MW_MSG_MAX_BUFLEN - MW_CMD_HEADLEN) |
Maximum data length contained inside command buffer. | |
#define | MW_SSID_MAXLEN 32 |
Maximum SSID length (including '\0'). | |
#define | MW_PASS_MAXLEN 64 |
Maximum password length (including '\0'). | |
#define | MW_GT_NICKNAME_MAX 32 |
Gamertag nickname maximum length. | |
#define | MW_GT_SECURITY_MAX 32 |
Gamertag security maximum length. | |
#define | MW_GT_TAGLINE_MAX 32 |
Gamertag tagline maximum length. | |
#define | MW_GT_AVATAR_WIDTH 32 |
Gamertag avatar graphick width in pixels. | |
#define | MW_GT_AVATAR_HEIGHT 48 |
Gamertag avatar graphick height in pixels. | |
#define | MW_GT_TG_TOKEN_MAX 64 |
Telegram token maximum length. |
Typedefs | |
typedef union mw_cmd | mw_cmd |
Command sent to system FSM. |
Enumerations | |
enum | mw_state { MW_ST_INIT = 0 , MW_ST_IDLE , MW_ST_AP_JOIN , MW_ST_SCAN , MW_ST_READY , MW_ST_TRANSPARENT , MW_ST_MAX } |
MwState Possible states of the system state machine. More... | |
enum | mw_sock_stat { MW_SOCK_NONE = 0 , MW_SOCK_TCP_LISTEN , MW_SOCK_TCP_EST , MW_SOCK_UDP_READY } |
Socket status. More... |
Variables | |
enum PACKED | mw_command |
Supported commands. | |
enum PACKED | mw_security |
Supported security protocols. | |
enum PACKED | mw_phy_type |
WiFi PHY configuration for the connection to the AP. |
MegaWiFi command message definitions.
Contains the definition of the command codes and the data structures conforming the command message queries and responses. Usually this module is not directly used by the application, but by megawifi internally.
enum mw_sock_stat |
enum mw_state |
MwState Possible states of the system state machine.