XU XUv0.13.1
中文

#embedded/chips/esp32/wifi_radio

import: #embedded/chips/esp32/wifi_radio

counts: 6 functions, 0 methods, 0 types, 0 constants, 0 method sets

TIMG0/T0 belongs to this Wi-Fi-only backend for its entire lifetime. APB=80MHz, divider=40000: low counter / 2 is milliseconds modulo 2^31.

backend

XuAPI
pub fn backend() esp32.WifiBackend

Purpose

Execute backend.

Parameters

No arguments are required.

Returns

esp32.WifiBackend — a value of this type

probe_gateway

XuAPI
pub fn probe_gateway(state $&session.State) bool

Purpose

Submit a bounded gateway probe without blocking BLE host servicing. Success reports submission; gateway_replies counts actual authenticated replies.

Parameters

state $&session.State
state (exclusive borrow; may modify the original; type $&session.State)

Returns

bool — true or false

gateway_replies

XuAPI
pub fn gateway_replies(state &session.State) int

Purpose

Gateway replies.

Parameters

state &session.State
state (read-only borrow; caller keeps the original; type &session.State)

Returns

int — a value of this type

open_tcp

XuAPI
pub fn open_tcp(state $&session.State, port int, peer &string) bool

Purpose

Select one application TCP port/remote IPv4 tuple; no application callback executes inside the radio receive path. The cooperative caller owns TCP.

Parameters

state $&session.State
state (exclusive borrow; may modify the original; type $&session.State)
port int
port (int)
peer &string
peer (read-only borrow; caller keeps the original; type &string)

Returns

bool — true or false

resolve_tcp

XuAPI
pub fn resolve_tcp(state $&session.State) bool

Purpose

Resolve TCP.

Parameters

state $&session.State
state (exclusive borrow; may modify the original; type $&session.State)

Returns

bool — true or false

send_tcp

XuAPI
pub fn send_tcp(state $&session.State, payload &string) bool

Purpose

Send TCP.

Parameters

state $&session.State
state (exclusive borrow; may modify the original; type $&session.State)
payload &string
payload (read-only borrow; caller keeps the original; type &string)

Returns

bool — true or false