const BLE_ADV_TYPE_IND
pub const BLE_ADV_TYPE_IND = 0x00用途
常量 BLE_ADV_TYPE_IND,定义了相关的协议或算法配置参数。
#embedded/chips/esp32标准库包 `#embedded/chips/esp32`。
const BLE_ADV_TYPE_INDpub const BLE_ADV_TYPE_IND = 0x00常量 BLE_ADV_TYPE_IND,定义了相关的协议或算法配置参数。
const BLE_ADV_TYPE_DIRECT_INDpub const BLE_ADV_TYPE_DIRECT_IND = 0x01常量 BLE_ADV_TYPE_DIRECT_IND,定义了相关的协议或算法配置参数。
const BLE_ADV_TYPE_SCAN_INDpub const BLE_ADV_TYPE_SCAN_IND = 0x02常量 BLE_ADV_TYPE_SCAN_IND,定义了相关的协议或算法配置参数。
const BLE_ADV_TYPE_NONCONN_INDpub const BLE_ADV_TYPE_NONCONN_IND = 0x03常量 BLE_ADV_TYPE_NONCONN_IND,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_FLAGSpub const BLE_GAP_AD_FLAGS = 0x01常量 BLE_GAP_AD_FLAGS,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID16_SOMEpub const BLE_GAP_AD_UUID16_SOME = 0x02常量 BLE_GAP_AD_UUID16_SOME,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID16_ALLpub const BLE_GAP_AD_UUID16_ALL = 0x03常量 BLE_GAP_AD_UUID16_ALL,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID32_SOMEpub const BLE_GAP_AD_UUID32_SOME = 0x04常量 BLE_GAP_AD_UUID32_SOME,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID32_ALLpub const BLE_GAP_AD_UUID32_ALL = 0x05常量 BLE_GAP_AD_UUID32_ALL,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID128_SOMEpub const BLE_GAP_AD_UUID128_SOME = 0x06常量 BLE_GAP_AD_UUID128_SOME,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_UUID128_ALLpub const BLE_GAP_AD_UUID128_ALL = 0x07常量 BLE_GAP_AD_UUID128_ALL,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_NAME_SHORTpub const BLE_GAP_AD_NAME_SHORT = 0x08常量 BLE_GAP_AD_NAME_SHORT,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_NAME_COMPLETEpub const BLE_GAP_AD_NAME_COMPLETE = 0x09常量 BLE_GAP_AD_NAME_COMPLETE,定义了相关的协议或算法配置参数。
const BLE_GAP_AD_TX_PWRpub const BLE_GAP_AD_TX_PWR = 0x0A常量 BLE_GAP_AD_TX_PWR,定义了相关的协议或算法配置参数。
const BLE_GAP_FLAG_LE_LIMITED_DISCpub const BLE_GAP_FLAG_LE_LIMITED_DISC = 0x01常量 BLE_GAP_FLAG_LE_LIMITED_DISC,定义了相关的协议或算法配置参数。
const BLE_GAP_FLAG_LE_GEN_DISCpub const BLE_GAP_FLAG_LE_GEN_DISC = 0x02常量 BLE_GAP_FLAG_LE_GEN_DISC,定义了相关的协议或算法配置参数。
const BLE_GAP_FLAG_BR_EDR_NOT_SUPPpub const BLE_GAP_FLAG_BR_EDR_NOT_SUPP = 0x04常量 BLE_GAP_FLAG_BR_EDR_NOT_SUPP,定义了相关的协议或算法配置参数。
const BLE_UUID_SERV_HIDpub const BLE_UUID_SERV_HID = 0x1812常量 BLE_UUID_SERV_HID,定义了相关的协议或算法配置参数。
const BLE_UUID_SERV_BATTERYpub const BLE_UUID_SERV_BATTERY = 0x180F常量 BLE_UUID_SERV_BATTERY,定义了相关的协议或算法配置参数。
const BLE_UUID_SERV_DEVINFOpub const BLE_UUID_SERV_DEVINFO = 0x180A常量 BLE_UUID_SERV_DEVINFO,定义了相关的协议或算法配置参数。
const HID_MOUSE_BTN_NONEpub const HID_MOUSE_BTN_NONE = 0x00常量 HID_MOUSE_BTN_NONE,定义了相关的协议或算法配置参数。
const HID_MOUSE_BTN_LEFTpub const HID_MOUSE_BTN_LEFT = 0x01常量 HID_MOUSE_BTN_LEFT,定义了相关的协议或算法配置参数。
const HID_MOUSE_BTN_RIGHTpub const HID_MOUSE_BTN_RIGHT = 0x02常量 HID_MOUSE_BTN_RIGHT,定义了相关的协议或算法配置参数。
const HID_MOUSE_BTN_MIDDLEpub const HID_MOUSE_BTN_MIDDLE = 0x04常量 HID_MOUSE_BTN_MIDDLE,定义了相关的协议或算法配置参数。
const HID_MOD_LCTRLpub const HID_MOD_LCTRL = 0x01常量 HID_MOD_LCTRL,定义了相关的协议或算法配置参数。
const HID_MOD_LSHIFTpub const HID_MOD_LSHIFT = 0x02常量 HID_MOD_LSHIFT,定义了相关的协议或算法配置参数。
const HID_MOD_LALTpub const HID_MOD_LALT = 0x04常量 HID_MOD_LALT,定义了相关的协议或算法配置参数。
const HID_MOD_LGUIpub const HID_MOD_LGUI = 0x08常量 HID_MOD_LGUI,定义了相关的协议或算法配置参数。
const HID_MOD_RCTRLpub const HID_MOD_RCTRL = 0x10常量 HID_MOD_RCTRL,定义了相关的协议或算法配置参数。
const HID_MOD_RSHIFTpub const HID_MOD_RSHIFT = 0x20常量 HID_MOD_RSHIFT,定义了相关的协议或算法配置参数。
const HID_MOD_RALTpub const HID_MOD_RALT = 0x40常量 HID_MOD_RALT,定义了相关的协议或算法配置参数。
const HID_MOD_RGUIpub const HID_MOD_RGUI = 0x80常量 HID_MOD_RGUI,定义了相关的协议或算法配置参数。
const HID_KEY_Apub const HID_KEY_A = 0x04常量 HID_KEY_A,定义了相关的协议或算法配置参数。
const HID_KEY_Bpub const HID_KEY_B = 0x05常量 HID_KEY_B,定义了相关的协议或算法配置参数。
const HID_KEY_Cpub const HID_KEY_C = 0x06常量 HID_KEY_C,定义了相关的协议或算法配置参数。
const HID_KEY_Hpub const HID_KEY_H = 0x0B常量 HID_KEY_H,定义了相关的协议或算法配置参数。
const HID_KEY_ENTERpub const HID_KEY_ENTER = 0x28常量 HID_KEY_ENTER,定义了相关的协议或算法配置参数。
const HID_KEY_ESCpub const HID_KEY_ESC = 0x29常量 HID_KEY_ESC,定义了相关的协议或算法配置参数。
const HID_KEY_SPACEpub const HID_KEY_SPACE = 0x2C常量 HID_KEY_SPACE,定义了相关的协议或算法配置参数。
const HID_CONSUMER_VOLUME_UPpub const HID_CONSUMER_VOLUME_UP = 0xE9常量 HID_CONSUMER_VOLUME_UP,定义了相关的协议或算法配置参数。
const HID_CONSUMER_VOLUME_DOWNpub const HID_CONSUMER_VOLUME_DOWN = 0xEA常量 HID_CONSUMER_VOLUME_DOWN,定义了相关的协议或算法配置参数。
const HID_CONSUMER_MUTEpub const HID_CONSUMER_MUTE = 0xE2常量 HID_CONSUMER_MUTE,定义了相关的协议或算法配置参数。
const HID_CONSUMER_MENUpub const HID_CONSUMER_MENU = 0x40常量 HID_CONSUMER_MENU,定义了相关的协议或算法配置参数。
const DPORT_BT_LPCK_DIV_INT_REGpub const DPORT_BT_LPCK_DIV_INT_REG = 0x3FF000D4常量 DPORT_BT_LPCK_DIV_INT_REG,定义了相关的协议或算法配置参数。
const DPORT_BT_LPCK_DIV_FRAC_REGpub const DPORT_BT_LPCK_DIV_FRAC_REG = 0x3FF000D8常量 DPORT_BT_LPCK_DIV_FRAC_REG,定义了相关的协议或算法配置参数。
const BT_LPCLK_SEL_XTALpub const BT_LPCLK_SEL_XTAL = 0常量 BT_LPCLK_SEL_XTAL,定义了相关的协议或算法配置参数。
const BT_LPCLK_SEL_XTAL32Kpub const BT_LPCLK_SEL_XTAL32K = 1常量 BT_LPCLK_SEL_XTAL32K,定义了相关的协议或算法配置参数。
const BT_LPCLK_SEL_RTC_SLOWpub const BT_LPCLK_SEL_RTC_SLOW = 2常量 BT_LPCLK_SEL_RTC_SLOW,定义了相关的协议或算法配置参数。
const BT_LPCLK_SEL_8Mpub const BT_LPCLK_SEL_8M = 3常量 BT_LPCLK_SEL_8M,定义了相关的协议或算法配置参数。
const BT_LPCK_SEL_XTALpub const BT_LPCK_SEL_XTAL = 0x04000000常量 BT_LPCK_SEL_XTAL,定义了相关的协议或算法配置参数。
const BT_LPCK_SEL_XTAL32Kpub const BT_LPCK_SEL_XTAL32K = 0x08000000常量 BT_LPCK_SEL_XTAL32K,定义了相关的协议或算法配置参数。
const BT_LPCK_SEL_RTC_SLOWpub const BT_LPCK_SEL_RTC_SLOW = 0x01000000常量 BT_LPCK_SEL_RTC_SLOW,定义了相关的协议或算法配置参数。
const BT_LPCK_SEL_8Mpub const BT_LPCK_SEL_8M = 0x02000000常量 BT_LPCK_SEL_8M,定义了相关的协议或算法配置参数。
const BT_LPCK_SEL_MASKpub const BT_LPCK_SEL_MASK = 0x0F000000常量 BT_LPCK_SEL_MASK,定义了相关的协议或算法配置参数。
const BT_LPCK_DIV_NUM_MASKpub const BT_LPCK_DIV_NUM_MASK = 0x00000FFF常量 BT_LPCK_DIV_NUM_MASK,定义了相关的协议或算法配置参数。
const DPORT_BB_CLK_EN_REGpub const DPORT_BB_CLK_EN_REG = 0x3FF000CC常量 DPORT_BB_CLK_EN_REG,定义了相关的协议或算法配置参数。
const DPORT_BB_RST_EN_REGpub const DPORT_BB_RST_EN_REG = 0x3FF000D0常量 DPORT_BB_RST_EN_REG,定义了相关的协议或算法配置参数。
const DPORT_PRO_BT_MAC_INTR_MAP_REGpub const DPORT_PRO_BT_MAC_INTR_MAP_REG = 0x3FF00110常量 DPORT_PRO_BT_MAC_INTR_MAP_REG,定义了相关的协议或算法配置参数。
const DPORT_PRO_BT_BB_INTR_MAP_REGpub const DPORT_PRO_BT_BB_INTR_MAP_REG = 0x3FF00114常量 DPORT_PRO_BT_BB_INTR_MAP_REG,定义了相关的协议或算法配置参数。
const DPORT_PRO_RWBT_IRQ_MAP_REGpub const DPORT_PRO_RWBT_IRQ_MAP_REG = 0x3FF0011C常量 DPORT_PRO_RWBT_IRQ_MAP_REG,定义了相关的协议或算法配置参数。
const DPORT_PRO_RWBLE_IRQ_MAP_REGpub const DPORT_PRO_RWBLE_IRQ_MAP_REG = 0x3FF00120常量 DPORT_PRO_RWBLE_IRQ_MAP_REG,定义了相关的协议或算法配置参数。
const DPORT_WIFI_CLK_WIFI_BT_COMMON_Mpub const DPORT_WIFI_CLK_WIFI_BT_COMMON_M = 0x000003C9常量 DPORT_WIFI_CLK_WIFI_BT_COMMON_M,定义了相关的协议或算法配置参数。
const DPORT_WIFI_CLK_BT_EN_Mpub const DPORT_WIFI_CLK_BT_EN_M = 0x00030800常量 DPORT_WIFI_CLK_BT_EN_M,定义了相关的协议或算法配置参数。
const DPORT_WIFI_CLK_BT_LC_EN_Mpub const DPORT_WIFI_CLK_BT_LC_EN_M = 0x00030000常量 DPORT_WIFI_CLK_BT_LC_EN_M,定义了相关的协议或算法配置参数。
const DPORT_BT_RST_Mpub const DPORT_BT_RST_M = 0x00000008常量 DPORT_BT_RST_M,定义了相关的协议或算法配置参数。
bt_power_domain_onpub fn bt_power_domain_on() bool执行 bt power domain on 操作。
无需传入参数。
bool — 是否成立
bt_rf_clock_enablepub fn bt_rf_clock_enable()执行 bt rf clock enable 操作。
无需传入参数。
不返回值。
bt_interrupt_routepub fn bt_interrupt_route()执行 bt interrupt route 操作。
无需传入参数。
不返回值。
bt_rf_bringup_sequencepub fn bt_rf_bringup_sequence() bool执行 bt rf bringup sequence 操作。
无需传入参数。
bool — 是否成立
const PIN_INPUTpub const PIN_INPUT = 0常量 PIN_INPUT,定义了相关的协议或算法配置参数。
const PIN_OUTPUTpub const PIN_OUTPUT = 1常量 PIN_OUTPUT,定义了相关的协议或算法配置参数。
const PIN_INPUT_PULLUPpub const PIN_INPUT_PULLUP = 2常量 PIN_INPUT_PULLUP,定义了相关的协议或算法配置参数。
const PIN_INPUT_PULLDOWNpub const PIN_INPUT_PULLDOWN = 3常量 PIN_INPUT_PULLDOWN,定义了相关的协议或算法配置参数。
const PIN_LOWpub const PIN_LOW = 0常量 PIN_LOW,定义了相关的协议或算法配置参数。
const PIN_HIGHpub const PIN_HIGH = 1常量 PIN_HIGH,定义了相关的协议或算法配置参数。
gpio_pin_maskpub fn gpio_pin_mask(pin int) int执行 gpio pin mask 操作。
pin intint — 该类型的值
gpio_config_muxpub fn gpio_config_mux(pin int, mux_val int)执行 gpio config mux 操作。
pin intmux_val int不返回值。
gpio_route_outpub fn gpio_route_out(pin int)执行 gpio route out 操作。
pin int不返回值。
gpio_initpub fn gpio_init(pin int, mode int)执行 gpio init 操作。
pin intmode int不返回值。
gpio_set_highpub fn gpio_set_high(pin int)执行 gpio set high 操作。
pin int不返回值。
gpio_set_lowpub fn gpio_set_low(pin int)执行 gpio set low 操作。
pin int不返回值。
gpio_set_high_maskpub fn gpio_set_high_mask(mask int)执行 gpio set high mask 操作。
mask int不返回值。
gpio_set_low_maskpub fn gpio_set_low_mask(mask int)执行 gpio set low mask 操作。
mask int不返回值。
gpio_setpub fn gpio_set(pin int, val int)执行 gpio set 操作。
pin intval int不返回值。
gpio_getpub fn gpio_get(pin int) int执行 gpio get 操作。
pin intint — 该类型的值
gpio_togglepub fn gpio_toggle(pin int)执行 gpio toggle 操作。
pin int不返回值。
bt_irq_rom_recover_assertionpub fn bt_irq_rom_recover_assertion(file int, line int, detail int) bool执行 bt irq rom recover assertion 操作。
file intline intdetail intbool — 是否成立
bt_irq_rom_recovery_errorpub fn bt_irq_rom_recovery_error() int执行 bt irq rom recovery error 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_recovery_countpub fn bt_irq_rom_recovery_count() int执行 bt irq rom recovery count 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_bb_servicepub fn bt_irq_rom_bb_service() int执行 bt irq rom bb service 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_bb_attachpub fn bt_irq_rom_bb_attach() bool执行 bt irq rom bb attach 操作。
无需传入参数。
bool — 是否成立
bt_irq_rom_bb_enablepub fn bt_irq_rom_bb_enable() bool执行 bt irq rom bb enable 操作。
无需传入参数。
bool — 是否成立
bt_irq_rom_bb_errorpub fn bt_irq_rom_bb_error() int执行 bt irq rom bb error 操作。
无需传入参数。
int — 该类型的值
irq_rom_maskpub fn irq_rom_mask(mask int) int执行 irq rom mask 操作。
mask intint — 该类型的值
irq_rom_unmaskpub fn irq_rom_unmask(mask int) int执行 irq rom unmask 操作。
mask intint — 该类型的值
irq_rom_set_levelpub fn irq_rom_set_level(level int) int执行 irq rom set level 操作。
level intint — 该类型的值
irq_rom_attach_btpub fn irq_rom_attach_bt(callback_address int, context int) bool执行 irq rom attach bt 操作。
callback_address intcontext intbool — 是否成立
irq_rom_attach_timer0pub fn irq_rom_attach_timer0(callback_address int, context int) bool执行 irq rom attach timer0 操作。
callback_address intcontext intbool — 是否成立
irq_rom_timer0_armpub fn irq_rom_timer0_arm(cycle_count int)执行 irq rom timer0 arm 操作。
cycle_count int不返回值。
irq_rom_cycle_countpub fn irq_rom_cycle_count() int执行 irq rom cycle count 操作。
无需传入参数。
int — 该类型的值
irq_rom_pendingpub fn irq_rom_pending() int执行 irq rom pending 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_servicepub fn bt_irq_rom_service() int执行 bt irq rom service 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_attachpub fn bt_irq_rom_attach() bool执行 bt irq rom attach 操作。
无需传入参数。
bool — 是否成立
bt_irq_rom_enablepub fn bt_irq_rom_enable() bool执行 bt irq rom enable 操作。
无需传入参数。
bool — 是否成立
bt_irq_rom_disablepub fn bt_irq_rom_disable()执行 bt irq rom disable 操作。
无需传入参数。
不返回值。
bt_irq_rom_countpub fn bt_irq_rom_count() int执行 bt irq rom count 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_take_workpub fn bt_irq_rom_take_work() bool执行 bt irq rom take work 操作。
无需传入参数。
bool — 是否成立
bt_irq_rom_last_cyclespub fn bt_irq_rom_last_cycles() int执行 bt irq rom last cycles 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_max_cyclespub fn bt_irq_rom_max_cycles() int执行 bt irq rom max cycles 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_bb_last_cyclespub fn bt_irq_rom_bb_last_cycles() int执行 bt irq rom bb last cycles 操作。
无需传入参数。
int — 该类型的值
bt_irq_rom_bb_max_cyclespub fn bt_irq_rom_bb_max_cycles() int执行 bt irq rom bb max cycles 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_installpub fn llc_auth_rom_install(enabled bool) bool执行 llc auth rom install 操作。
enabled boolbool — 是否成立
llc_auth_rom_errorpub fn llc_auth_rom_error() int执行 llc auth rom error 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_margin_countpub fn llc_auth_rom_margin_count() int执行 llc auth rom margin count 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_timeout_countpub fn llc_auth_rom_timeout_count() int执行 llc auth rom timeout count 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_last_statepub fn llc_auth_rom_last_state() int执行 llc auth rom last state 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_last_marginpub fn llc_auth_rom_last_margin() int执行 llc auth rom last margin 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_last_timeoutpub fn llc_auth_rom_last_timeout() int执行 llc auth rom last timeout 操作。
无需传入参数。
int — 该类型的值
llc_auth_rom_last_procedurepub fn llc_auth_rom_last_procedure() int执行 llc auth rom last procedure 操作。
无需传入参数。
int — 该类型的值
phy_prepare_analog_buspub fn phy_prepare_analog_bus() bool执行 phy prepare analog bus 操作。
无需传入参数。
bool — 是否成立
phy_select_analog_blockpub fn phy_select_analog_block(block int) bool执行 phy select analog block 操作。
block intbool — 是否成立
phy_cal_bb_registers_initpub fn phy_cal_bb_registers_init() bool执行 phy cal bb registers init 操作。
无需传入参数。
bool — 是否成立
phy_cal_hw_frequency_disablepub fn phy_cal_hw_frequency_disable() bool执行 phy cal hw frequency disable 操作。
无需传入参数。
bool — 是否成立
phy_cal_hw_frequency_enablepub fn phy_cal_hw_frequency_enable()执行 phy cal hw frequency enable 操作。
无需传入参数。
不返回值。
phy_cal_bt_baseband_initpub fn phy_cal_bt_baseband_init() bool执行 phy cal bt baseband init 操作。
无需传入参数。
bool — 是否成立
phy_cal_channel_programmerpub fn phy_cal_channel_programmer() bool执行 phy cal channel programmer 操作。
无需传入参数。
bool — 是否成立
phy_cal_rc_40mhzpub fn phy_cal_rc_40mhz() bool执行 phy cal rc 40mhz 操作。
无需传入参数。
bool — 是否成立
phy_cal_bt_prioritypub fn phy_cal_bt_priority() bool执行 phy cal bt priority 操作。
无需传入参数。
bool — 是否成立
phy_cal_tx_releasepub fn phy_cal_tx_release() bool执行 phy cal tx release 操作。
无需传入参数。
bool — 是否成立
phy_cal_bt_gain_memorypub fn phy_cal_bt_gain_memory() bool执行 phy cal bt gain memory 操作。
无需传入参数。
bool — 是否成立
phy_cal_install_i2cpub fn phy_cal_install_i2c() bool执行 phy cal install i2c 操作。
无需传入参数。
bool — 是否成立
phy_cal_i2c_errorpub fn phy_cal_i2c_error() int执行 phy cal i2c error 操作。
无需传入参数。
int — 该类型的值
phy_cal_restore_i2cpub fn phy_cal_restore_i2c()执行 phy cal restore i2c 操作。
无需传入参数。
不返回值。
phy_cal_pbus_memory_initpub fn phy_cal_pbus_memory_init() bool执行 phy cal pbus memory init 操作。
无需传入参数。
bool — 是否成立
phy_cal_analog_defaultspub fn phy_cal_analog_defaults() bool执行 phy cal analog defaults 操作。
无需传入参数。
bool — 是否成立
phy_cal_rf_bus_initpub fn phy_cal_rf_bus_init() bool执行 phy cal rf bus init 操作。
无需传入参数。
bool — 是否成立
phy_cal_pll_40mhzpub fn phy_cal_pll_40mhz() bool执行 phy cal pll 40mhz 操作。
无需传入参数。
bool — 是否成立
phy_cal_install_sarpub fn phy_cal_install_sar() bool执行 phy cal install sar 操作。
无需传入参数。
bool — 是否成立
phy_cal_txcap_btpub fn phy_cal_txcap_bt() bool执行 phy cal txcap bt 操作。
无需传入参数。
bool — 是否成立
phy_cal_txpower_btpub fn phy_cal_txpower_bt() bool执行 phy cal txpower bt 操作。
无需传入参数。
bool — 是否成立
phy_cal_cold_resetpub fn phy_cal_cold_reset() bool执行 phy cal cold reset 操作。
无需传入参数。
bool — 是否成立
phy_cal_rx_errorpub fn phy_cal_rx_error() int执行 phy cal rx error 操作。
无需传入参数。
int — 该类型的值
phy_cal_rx_stagespub fn phy_cal_rx_stages() int执行 phy cal rx stages 操作。
无需传入参数。
int — 该类型的值
phy_cal_rx_bt_calibratedpub fn phy_cal_rx_bt_calibrated() bool执行 phy cal rx bt calibrated 操作。
无需传入参数。
bool — 是否成立
phy_cal_rx_bt_dcpub fn phy_cal_rx_bt_dc(index int) int执行 phy cal rx bt dc 操作。
index intint — 该类型的值
phy_cal_rx_bt_resultpub fn phy_cal_rx_bt_result(index int, component int) int执行 phy cal rx bt result 操作。
index intcomponent intint — 该类型的值
phy_cal_rx_btpub fn phy_cal_rx_bt() bool执行 phy cal rx bt 操作。
无需传入参数。
bool — 是否成立
phy_cal_rx_bt_rf_gainpub fn phy_cal_rx_bt_rf_gain(index int) int执行 phy cal rx bt rf gain 操作。
index intint — 该类型的值
phy_cal_rx_bt_gain_atpub fn phy_cal_rx_bt_gain_at(index int) int执行 phy cal rx bt gain at 操作。
index intint — 该类型的值
phy_cal_power_detector_initpub fn phy_cal_power_detector_init() bool执行 phy cal power detector init 操作。
无需传入参数。
bool — 是否成立
phy_cal_shared_tx_calibratepub fn phy_cal_shared_tx_calibrate() bool执行 phy cal shared tx calibrate 操作。
无需传入参数。
bool — 是否成立
phy_cal_shared_gain_memorypub fn phy_cal_shared_gain_memory() bool执行 phy cal shared gain memory 操作。
无需传入参数。
bool — 是否成立
const PHY_TRACKING_READYpub const PHY_TRACKING_READY = 0x5452414B常量 PHY_TRACKING_READY,定义了相关的协议或算法配置参数。
phy_tracking_is_readypub fn phy_tracking_is_ready() bool判断 phy_tracking 是否为 ready。
无需传入参数。
bool — 是否成立
phy_tracking_errorpub fn phy_tracking_error() int执行 phy tracking error 操作。
无需传入参数。
int — 该类型的值
phy_tracking_countpub fn phy_tracking_count() int执行 phy tracking count 操作。
无需传入参数。
int — 该类型的值
phy_bt_track_pll_cappub fn phy_bt_track_pll_cap() bool执行 phy bt track pll cap 操作。
无需传入参数。
bool — 是否成立
phy_cal_install_pbuspub fn phy_cal_install_pbus() bool执行 phy cal install pbus 操作。
无需传入参数。
bool — 是否成立
phy_cal_txdc_btpub fn phy_cal_txdc_bt() bool执行 phy cal txdc bt 操作。
无需传入参数。
bool — 是否成立
phy_cal_tone_powerpub fn phy_cal_tone_power() int执行 phy cal tone power 操作。
无需传入参数。
int — 该类型的值
phy_cal_txiq_btpub fn phy_cal_txiq_bt() bool执行 phy cal txiq bt 操作。
无需传入参数。
bool — 是否成立
const VENDOR_PHY_GET_ROMFUNC_ADDRpub const VENDOR_PHY_GET_ROMFUNC_ADDR = 0x40153E4C常量 VENDOR_PHY_GET_ROMFUNC_ADDR,定义了相关的协议或算法配置参数。
const VENDOR_BT_BB_INIT_CMPLXpub const VENDOR_BT_BB_INIT_CMPLX = 0x4008E294常量 VENDOR_BT_BB_INIT_CMPLX,定义了相关的协议或算法配置参数。
const PHY_ROM_TABLEpub const PHY_ROM_TABLE = 0x3FFAE0C4常量 PHY_ROM_TABLE,定义了相关的协议或算法配置参数。
const PHY_ROM_DEFAULT_SLOT0pub const PHY_ROM_DEFAULT_SLOT0 = 0x40002F6C常量 PHY_ROM_DEFAULT_SLOT0,定义了相关的协议或算法配置参数。
const PHY_ROM_IMPORTpub const PHY_ROM_IMPORT = 0x3FFB8354常量 PHY_ROM_IMPORT,定义了相关的协议或算法配置参数。
phy_rom_table_basepub fn phy_rom_table_base() int执行 phy rom table base 操作。
无需传入参数。
int — 该类型的值
phy_rom_vendor_installpub fn phy_rom_vendor_install() bool执行 phy rom vendor install 操作。
无需传入参数。
bool — 是否成立
phy_rom_vendor_bb_installpub fn phy_rom_vendor_bb_install() bool执行 phy rom vendor bb install 操作。
无需传入参数。
bool — 是否成立
phy_rom_slotpub fn phy_rom_slot(index int) int执行 phy rom slot 操作。
index intint — 该类型的值
radio_rf_errorpub fn radio_rf_error() int执行 radio rf error 操作。
无需传入参数。
int — 该类型的值
radio_rf_stagespub fn radio_rf_stages() int执行 radio rf stages 操作。
无需传入参数。
int — 该类型的值
radio_controller_memory_initpub fn radio_controller_memory_init() bool执行 radio controller memory init 操作。
无需传入参数。
bool — 是否成立
radio_clock_xtal_40mhzpub fn radio_clock_xtal_40mhz() bool执行 radio clock xtal 40mhz 操作。
无需传入参数。
bool — 是否成立
radio_rf_readbackpub fn radio_rf_readback() bool执行 radio rf readback 操作。
无需传入参数。
bool — 是否成立
radio_rf_cold_initpub fn radio_rf_cold_init() bool执行 radio rf cold init 操作。
无需传入参数。
bool — 是否成立
radio_event_arbiter_initpub fn radio_event_arbiter_init() bool执行 radio event arbiter init 操作。
无需传入参数。
bool — 是否成立
const GPIO_OUT_REGpub const GPIO_OUT_REG = 0x3FF44004常量 GPIO_OUT_REG,定义了相关的协议或算法配置参数。
const GPIO_OUT_W1TS_REGpub const GPIO_OUT_W1TS_REG = 0x3FF44008常量 GPIO_OUT_W1TS_REG,定义了相关的协议或算法配置参数。
const GPIO_OUT_W1TC_REGpub const GPIO_OUT_W1TC_REG = 0x3FF4400C常量 GPIO_OUT_W1TC_REG,定义了相关的协议或算法配置参数。
const GPIO_OUT1_REGpub const GPIO_OUT1_REG = 0x3FF44010常量 GPIO_OUT1_REG,定义了相关的协议或算法配置参数。
const GPIO_OUT1_W1TS_REGpub const GPIO_OUT1_W1TS_REG = 0x3FF44014常量 GPIO_OUT1_W1TS_REG,定义了相关的协议或算法配置参数。
const GPIO_OUT1_W1TC_REGpub const GPIO_OUT1_W1TC_REG = 0x3FF44018常量 GPIO_OUT1_W1TC_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE_REGpub const GPIO_ENABLE_REG = 0x3FF44020常量 GPIO_ENABLE_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE_W1TS_REGpub const GPIO_ENABLE_W1TS_REG = 0x3FF44024常量 GPIO_ENABLE_W1TS_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE_W1TC_REGpub const GPIO_ENABLE_W1TC_REG = 0x3FF44028常量 GPIO_ENABLE_W1TC_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE1_REGpub const GPIO_ENABLE1_REG = 0x3FF4402C常量 GPIO_ENABLE1_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE1_W1TS_REGpub const GPIO_ENABLE1_W1TS_REG = 0x3FF44030常量 GPIO_ENABLE1_W1TS_REG,定义了相关的协议或算法配置参数。
const GPIO_ENABLE1_W1TC_REGpub const GPIO_ENABLE1_W1TC_REG = 0x3FF44034常量 GPIO_ENABLE1_W1TC_REG,定义了相关的协议或算法配置参数。
const GPIO_IN_REGpub const GPIO_IN_REG = 0x3FF4403C常量 GPIO_IN_REG,定义了相关的协议或算法配置参数。
const GPIO_IN1_REGpub const GPIO_IN1_REG = 0x3FF44040常量 GPIO_IN1_REG,定义了相关的协议或算法配置参数。
const IO_MUX_PIN_CTRLpub const IO_MUX_PIN_CTRL = 0x3FF49000常量 IO_MUX_PIN_CTRL,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO0_REGpub const IO_MUX_GPIO0_REG = 0x3FF49044常量 IO_MUX_GPIO0_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO2_REGpub const IO_MUX_GPIO2_REG = 0x3FF49040常量 IO_MUX_GPIO2_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO4_REGpub const IO_MUX_GPIO4_REG = 0x3FF49048常量 IO_MUX_GPIO4_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO5_REGpub const IO_MUX_GPIO5_REG = 0x3FF4906C常量 IO_MUX_GPIO5_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO12_REGpub const IO_MUX_GPIO12_REG = 0x3FF49034常量 IO_MUX_GPIO12_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO13_REGpub const IO_MUX_GPIO13_REG = 0x3FF49038常量 IO_MUX_GPIO13_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO14_REGpub const IO_MUX_GPIO14_REG = 0x3FF49030常量 IO_MUX_GPIO14_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO15_REGpub const IO_MUX_GPIO15_REG = 0x3FF4903C常量 IO_MUX_GPIO15_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO16_REGpub const IO_MUX_GPIO16_REG = 0x3FF4904C常量 IO_MUX_GPIO16_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO17_REGpub const IO_MUX_GPIO17_REG = 0x3FF49050常量 IO_MUX_GPIO17_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO18_REGpub const IO_MUX_GPIO18_REG = 0x3FF49070常量 IO_MUX_GPIO18_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO19_REGpub const IO_MUX_GPIO19_REG = 0x3FF49074常量 IO_MUX_GPIO19_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO21_REGpub const IO_MUX_GPIO21_REG = 0x3FF4907C常量 IO_MUX_GPIO21_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO22_REGpub const IO_MUX_GPIO22_REG = 0x3FF49080常量 IO_MUX_GPIO22_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO23_REGpub const IO_MUX_GPIO23_REG = 0x3FF49084常量 IO_MUX_GPIO23_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO25_REGpub const IO_MUX_GPIO25_REG = 0x3FF49024常量 IO_MUX_GPIO25_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO26_REGpub const IO_MUX_GPIO26_REG = 0x3FF49028常量 IO_MUX_GPIO26_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO27_REGpub const IO_MUX_GPIO27_REG = 0x3FF4902C常量 IO_MUX_GPIO27_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO32_REGpub const IO_MUX_GPIO32_REG = 0x3FF4901C常量 IO_MUX_GPIO32_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO33_REGpub const IO_MUX_GPIO33_REG = 0x3FF49020常量 IO_MUX_GPIO33_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO34_REGpub const IO_MUX_GPIO34_REG = 0x3FF49014常量 IO_MUX_GPIO34_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO35_REGpub const IO_MUX_GPIO35_REG = 0x3FF49018常量 IO_MUX_GPIO35_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO36_REGpub const IO_MUX_GPIO36_REG = 0x3FF49004常量 IO_MUX_GPIO36_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO37_REGpub const IO_MUX_GPIO37_REG = 0x3FF49008常量 IO_MUX_GPIO37_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO38_REGpub const IO_MUX_GPIO38_REG = 0x3FF4900C常量 IO_MUX_GPIO38_REG,定义了相关的协议或算法配置参数。
const IO_MUX_GPIO39_REGpub const IO_MUX_GPIO39_REG = 0x3FF49010常量 IO_MUX_GPIO39_REG,定义了相关的协议或算法配置参数。
const UART0_FIFO_REGpub const UART0_FIFO_REG = 0x3FF40000常量 UART0_FIFO_REG,定义了相关的协议或算法配置参数。
const UART0_INT_RAW_REGpub const UART0_INT_RAW_REG = 0x3FF40004常量 UART0_INT_RAW_REG,定义了相关的协议或算法配置参数。
const UART0_STATUS_REGpub const UART0_STATUS_REG = 0x3FF4001C常量 UART0_STATUS_REG,定义了相关的协议或算法配置参数。
const TIMG0_T0CONFIG_REGpub const TIMG0_T0CONFIG_REG = 0x3FF5F000常量 TIMG0_T0CONFIG_REG,定义了相关的协议或算法配置参数。
const TIMG0_T0LO_REGpub const TIMG0_T0LO_REG = 0x3FF5F004常量 TIMG0_T0LO_REG,定义了相关的协议或算法配置参数。
const TIMG0_T0HI_REGpub const TIMG0_T0HI_REG = 0x3FF5F008常量 TIMG0_T0HI_REG,定义了相关的协议或算法配置参数。
const TIMG0_T0UPDATE_REGpub const TIMG0_T0UPDATE_REG = 0x3FF5F00C常量 TIMG0_T0UPDATE_REG,定义了相关的协议或算法配置参数。
const TIMG0_WDTCONFIG0_REGpub const TIMG0_WDTCONFIG0_REG = 0x3FF5F048常量 TIMG0_WDTCONFIG0_REG,定义了相关的协议或算法配置参数。
const TIMG0_WDTFEED_REGpub const TIMG0_WDTFEED_REG = 0x3FF5F060常量 TIMG0_WDTFEED_REG,定义了相关的协议或算法配置参数。
const TIMG0_WDTWPROTECT_REGpub const TIMG0_WDTWPROTECT_REG= 0x3FF5F064常量 TIMG0_WDTWPROTECT_REG,定义了相关的协议或算法配置参数。
const TIMG1_WDTCONFIG0_REGpub const TIMG1_WDTCONFIG0_REG = 0x3FF60048常量 TIMG1_WDTCONFIG0_REG,定义了相关的协议或算法配置参数。
const TIMG1_WDTFEED_REGpub const TIMG1_WDTFEED_REG = 0x3FF60060常量 TIMG1_WDTFEED_REG,定义了相关的协议或算法配置参数。
const TIMG1_WDTWPROTECT_REGpub const TIMG1_WDTWPROTECT_REG= 0x3FF60064常量 TIMG1_WDTWPROTECT_REG,定义了相关的协议或算法配置参数。
const RTC_CNTL_WDTCONFIG0_REGpub const RTC_CNTL_WDTCONFIG0_REG = 0x3FF4808C常量 RTC_CNTL_WDTCONFIG0_REG,定义了相关的协议或算法配置参数。
const RTC_CNTL_WDTFEED_REGpub const RTC_CNTL_WDTFEED_REG = 0x3FF480A0常量 RTC_CNTL_WDTFEED_REG,定义了相关的协议或算法配置参数。
const RTC_CNTL_WDTWPROTECT_REGpub const RTC_CNTL_WDTWPROTECT_REG= 0x3FF480A4常量 RTC_CNTL_WDTWPROTECT_REG,定义了相关的协议或算法配置参数。
const WDT_WKEYpub const WDT_WKEY = 0x50D83AA1常量 WDT_WKEY,定义了相关的协议或算法配置参数。
const ROM_ETS_GET_CPU_FREQUENCYpub const ROM_ETS_GET_CPU_FREQUENCY = 0x4000855C常量 ROM_ETS_GET_CPU_FREQUENCY,定义了相关的协议或算法配置参数。
const ROM_ETS_DELAY_USpub const ROM_ETS_DELAY_US = 0x40008534常量 ROM_ETS_DELAY_US,定义了相关的协议或算法配置参数。
const ROM_MEMSETpub const ROM_MEMSET = 0x4000C44C常量 ROM_MEMSET,定义了相关的协议或算法配置参数。
const ROM_MEMCPYpub const ROM_MEMCPY = 0x4000C2C8常量 ROM_MEMCPY,定义了相关的协议或算法配置参数。
const ROM_BTDM_VERSION_GETpub const ROM_BTDM_VERSION_GET = 0x40010078常量 ROM_BTDM_VERSION_GET,定义了相关的协议或算法配置参数。
const ROM_BTDM_DATA_INITpub const ROM_BTDM_DATA_INIT = 0x4001002C常量 ROM_BTDM_DATA_INIT,定义了相关的协议或算法配置参数。
const ROM_PHY_GET_ROMFUNCSpub const ROM_PHY_GET_ROMFUNCS = 0x40004100常量 ROM_PHY_GET_ROMFUNCS,定义了相关的协议或算法配置参数。
const ROM_BTDM_BSS_STARTpub const ROM_BTDM_BSS_START = 0x3FFB8000常量 ROM_BTDM_BSS_START,定义了相关的协议或算法配置参数。
const ROM_BTDM_BSS_BYTESpub const ROM_BTDM_BSS_BYTES = 32624常量 ROM_BTDM_BSS_BYTES,定义了相关的协议或算法配置参数。
rom_cpu_mhzpub fn rom_cpu_mhz() int执行 rom cpu mhz 操作。
无需传入参数。
int — 该类型的值
rom_delay_uspub fn rom_delay_us(us int)执行 rom delay us 操作。
us int不返回值。
rom_bt_versionpub fn rom_bt_version() int执行 rom bt version 操作。
无需传入参数。
int — 该类型的值
rom_phy_functionspub fn rom_phy_functions() int执行 rom phy functions 操作。
无需传入参数。
int — 该类型的值
smp_aes128_lepub fn smp_aes128_le(key &[]int, block &[]int) []int执行 smp aes128 le 操作。
key &[]intblock &[]int[]int — 切片结果
struct SpiBuspub struct SpiBus {
pub sck_pin int
pub mosi_pin int
pub miso_pin int
pub cs_pin int
pub sck_mask int
pub mosi_mask int
pub cs_mask int
}承载 sck_pin、mosi_pin、miso_pin、cs_pin、sck_mask 等属性的结构体。
sck_pin intmosi_pin intmiso_pin intcs_pin intsck_mask intmosi_mask intcs_mask intspi_initpub fn spi_init(sck int, mosi int, miso int, cs int) SpiBus执行 spi init 操作。
sck intmosi intmiso intcs intSpiBus — 该类型的值
(&SpiBus) cs_lowpub fn (bus &SpiBus) cs_low()&SpiBus 上的操作:执行 cs low 操作。
bus &SpiBusSpiBus 实例;以只读借用传入,调用方仍持有实例。不返回值。
(&SpiBus) cs_highpub fn (bus &SpiBus) cs_high()&SpiBus 上的操作:执行 cs high 操作。
bus &SpiBusSpiBus 实例;以只读借用传入,调用方仍持有实例。不返回值。
(&SpiBus) write_bytepub fn (bus &SpiBus) write_byte(b int)&SpiBus 上的操作:写入一个字节。
bus &SpiBusSpiBus 实例;以只读借用传入,调用方仍持有实例。b int不返回值。
(&SpiBus) write_wordpub fn (bus &SpiBus) write_word(w int)&SpiBus 上的操作:执行 write word 操作。
bus &SpiBusSpiBus 实例;以只读借用传入,调用方仍持有实例。w int不返回值。
(&SpiBus) write_fillpub fn (bus &SpiBus) write_fill(val16 int, count int)&SpiBus 上的操作:执行 write fill 操作。
bus &SpiBusSpiBus 实例;以只读借用传入,调用方仍持有实例。val16 intcount int不返回值。
delay_cyclespub fn delay_cycles(cycles int)执行 delay cycles 操作。
cycles int不返回值。
delay_uspub fn delay_us(us int)执行 delay us 操作。
us int不返回值。
delay_mspub fn delay_ms(ms int)执行 delay ms 操作。
ms int不返回值。
uart_write_charpub fn uart_write_char(ch int)执行 uart write char 操作。
ch int不返回值。
uart_rx_availablepub fn uart_rx_available() bool执行 uart rx available 操作。
无需传入参数。
bool — 是否成立
uart_read_charpub fn uart_read_char() int执行 uart read char 操作。
无需传入参数。
int — 该类型的值
uart_writepub fn uart_write(s string)写入uart。
s string不返回值。
uart_printpub fn uart_print(s string)执行 uart print 操作。
s string不返回值。
uart_printlnpub fn uart_println(s string)执行 uart println 操作。
s string不返回值。
uart_print_intpub fn uart_print_int(n int)执行 uart print int 操作。
n int不返回值。
uart_println_intpub fn uart_println_int(n int)执行 uart println int 操作。
n int不返回值。
uart_print_hexpub fn uart_print_hex(n int)执行 uart print hex 操作。
n int不返回值。
wdt_disablepub fn wdt_disable()执行 wdt disable 操作。
无需传入参数。
不返回值。
wdt_feedpub fn wdt_feed()执行 wdt feed 操作。
无需传入参数。
不返回值。
initpub fn init()执行 init 处理。
无需传入参数。
不返回值。
const WIFI_MODE_NULLpub const WIFI_MODE_NULL = 0常量 WIFI_MODE_NULL,定义了相关的协议或算法配置参数。
const WIFI_MODE_STApub const WIFI_MODE_STA = 1常量 WIFI_MODE_STA,定义了相关的协议或算法配置参数。
const WIFI_MODE_APpub const WIFI_MODE_AP = 2常量 WIFI_MODE_AP,定义了相关的协议或算法配置参数。
const WIFI_MODE_APSTApub const WIFI_MODE_APSTA = 3常量 WIFI_MODE_APSTA,定义了相关的协议或算法配置参数。
const WIFI_AUTH_UNKNOWNpub const WIFI_AUTH_UNKNOWN = -1常量 WIFI_AUTH_UNKNOWN,定义了相关的协议或算法配置参数。
const WIFI_AUTH_OPENpub const WIFI_AUTH_OPEN = 0常量 WIFI_AUTH_OPEN,定义了相关的协议或算法配置参数。
const WIFI_AUTH_WEPpub const WIFI_AUTH_WEP = 1常量 WIFI_AUTH_WEP,定义了相关的协议或算法配置参数。
const WIFI_AUTH_WPA_PSKpub const WIFI_AUTH_WPA_PSK = 2常量 WIFI_AUTH_WPA_PSK,定义了相关的协议或算法配置参数。
const WIFI_AUTH_WPA2_PSKpub const WIFI_AUTH_WPA2_PSK = 3常量 WIFI_AUTH_WPA2_PSK,定义了相关的协议或算法配置参数。
const WIFI_AUTH_WPA_WPA2_PSKpub const WIFI_AUTH_WPA_WPA2_PSK = 4常量 WIFI_AUTH_WPA_WPA2_PSK,定义了相关的协议或算法配置参数。
const WIFI_AUTH_WPA3_PSKpub const WIFI_AUTH_WPA3_PSK = 5常量 WIFI_AUTH_WPA3_PSK,定义了相关的协议或算法配置参数。
const WIFI_STATUS_IDLEpub const WIFI_STATUS_IDLE = 0常量 WIFI_STATUS_IDLE,定义了相关的协议或算法配置参数。
const WIFI_STATUS_SCANNINGpub const WIFI_STATUS_SCANNING = 1常量 WIFI_STATUS_SCANNING,定义了相关的协议或算法配置参数。
const WIFI_STATUS_CONNECTINGpub const WIFI_STATUS_CONNECTING = 2常量 WIFI_STATUS_CONNECTING,定义了相关的协议或算法配置参数。
const WIFI_STATUS_CONNECTEDpub const WIFI_STATUS_CONNECTED = 3常量 WIFI_STATUS_CONNECTED,定义了相关的协议或算法配置参数。
const WIFI_STATUS_DISCONNECTEDpub const WIFI_STATUS_DISCONNECTED = 4常量 WIFI_STATUS_DISCONNECTED,定义了相关的协议或算法配置参数。
const WIFI_STATUS_AP_ACTIVEpub const WIFI_STATUS_AP_ACTIVE = 5常量 WIFI_STATUS_AP_ACTIVE,定义了相关的协议或算法配置参数。
const WIFI_STATUS_ERRORpub const WIFI_STATUS_ERROR = 6常量 WIFI_STATUS_ERROR,定义了相关的协议或算法配置参数。
const DPORT_WIFI_CLK_EN_REGpub const DPORT_WIFI_CLK_EN_REG = 0x3FF000CC常量 DPORT_WIFI_CLK_EN_REG,定义了相关的协议或算法配置参数。
const DPORT_CORE_RST_EN_REGpub const DPORT_CORE_RST_EN_REG = 0x3FF000D0常量 DPORT_CORE_RST_EN_REG,定义了相关的协议或算法配置参数。
const DPORT_WIFI_RST_EN_REGpub const DPORT_WIFI_RST_EN_REG = 0x3FF000D0常量 DPORT_WIFI_RST_EN_REG,定义了相关的协议或算法配置参数。
const DPORT_WIFI_CLK_WIFI_ENpub const DPORT_WIFI_CLK_WIFI_EN = 0x00000406常量 DPORT_WIFI_CLK_WIFI_EN,定义了相关的协议或算法配置参数。
dhcp_lease_ippub fn dhcp_lease_ip(subnet int, slot int) string执行 dhcp lease ip 操作。
subnet intslot intstring — 结果字符串
dhcp_gatewaypub fn dhcp_gateway(subnet int) string执行 dhcp gateway 操作。
subnet intstring — 结果字符串
struct WifiApConfigpub struct WifiApConfig {
pub ssid string
pub password string
pub channel int
pub authmode int
pub max_connections int
pub hidden bool
}Esp32 配置参数与选项集合。
ssid stringpassword stringchannel intauthmode intmax_connections inthidden boolstruct WifiStaConfigpub struct WifiStaConfig {
pub ssid string
pub password string
pub channel int
pub authmode int
}Esp32 配置参数与选项集合。
ssid stringpassword stringchannel intauthmode intstruct WifiScanResultpub struct WifiScanResult {
pub ssid string
pub rssi int
pub channel int
pub authmode int
pub bssid string
}承载 ssid、rssi、channel、authmode、bssid 等属性的结构体。
ssid stringrssi intchannel intauthmode intbssid stringstruct WifiBackendpub struct WifiBackend {
pub initialize fn($&session.State) bool
pub connect fn($&session.State, &string, &string, int) bool
pub service fn($&session.State, int) bool
pub disconnect fn($&session.State)
pub ping_gateway fn($&session.State, int) bool
}承载 initialize、connect、service、disconnect、ping_gateway 等属性的结构体。
initialize fn($&session.State) boolconnect fn($&session.State, &string, &string, int) boolservice fn($&session.State, int) booldisconnect fn($&session.State)ping_gateway fn($&session.State, int) boolwifi_default_backendpub fn wifi_default_backend() WifiBackend执行 wifi default backend 操作。
无需传入参数。
WifiBackend — 该类型的值
struct WifiDevicepub struct WifiDevice {
pub backend WifiBackend
pub session session.State
pub mode int
pub status int
pub ssid string
pub password string
pub ip string
pub gateway string
pub netmask string
pub dns string
pub mac string
pub channel int
pub rssi int
pub ap_active bool
pub sta_connected bool
pub dhcp_enabled bool
pub static_ip string
pub static_gateway string
pub static_netmask string
pub static_dns string
pub ap_client_pool_next int
}承载 backend、session、mode、status、ssid 等属性的结构体。
backend WifiBackendsession session.Statemode intstatus intssid stringpassword stringip stringgateway stringnetmask stringdns stringmac stringchannel intrssi intap_active boolsta_connected booldhcp_enabled boolstatic_ip stringstatic_gateway stringstatic_netmask stringstatic_dns stringap_client_pool_next intwifi_createpub fn wifi_create() WifiDevice创建wifi。
无需传入参数。
WifiDevice — 该类型的值
($&WifiDevice) initpub fn (dev $&WifiDevice) init() bool初始化结构体内部状态与默认配置。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。bool — 是否成立
($&WifiDevice) install_backendpub fn (dev $&WifiDevice) install_backend(backend WifiBackend) bool$&WifiDevice 上的操作:执行 install backend 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。backend WifiBackendbool — 是否成立
($&WifiDevice) pollpub fn (dev $&WifiDevice) poll(wait_ms int) bool在 $&WifiDevice 上执行 poll 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。wait_ms intbool — 是否成立
($&WifiDevice) ping_gatewaypub fn (dev $&WifiDevice) ping_gateway(timeout_ms int) bool$&WifiDevice 上的操作:执行 ping gateway 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。timeout_ms intbool — 是否成立
($&WifiDevice) set_modepub fn (dev $&WifiDevice) set_mode(mode int)$&WifiDevice 上的操作:设置 mode。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。mode int不返回值。
($&WifiDevice) config_static_ippub fn (dev $&WifiDevice) config_static_ip(ip string, gateway string, netmask string, dns string)$&WifiDevice 上的操作:执行 config static ip 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。ip stringgateway stringnetmask stringdns string不返回值。
($&WifiDevice) config_dhcppub fn (dev $&WifiDevice) config_dhcp(enable bool)$&WifiDevice 上的操作:执行 config dhcp 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。enable bool不返回值。
($&WifiDevice) start_appub fn (dev $&WifiDevice) start_ap(ssid string, password string, channel int) bool$&WifiDevice 上的操作:执行 start ap 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。ssid stringpassword stringchannel intbool — 是否成立
($&WifiDevice) start_ap_ippub fn (dev $&WifiDevice) start_ap_ip(ssid string, password string, channel int, ap_ip string, gateway string) bool$&WifiDevice 上的操作:执行 start ap ip 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。ssid stringpassword stringchannel intap_ip stringgateway stringbool — 是否成立
($&WifiDevice) allocate_client_ippub fn (dev $&WifiDevice) allocate_client_ip() string$&WifiDevice 上的操作:执行 allocate client ip 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。string — 结果字符串
($&WifiDevice) connectpub fn (dev $&WifiDevice) connect(ssid string, password string) bool建立与目标服务端点的网络通信连接。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。ssid stringpassword stringbool — 是否成立
($&WifiDevice) connect_timeoutpub fn (dev $&WifiDevice) connect_timeout(ssid string, password string, timeout_ms int) bool$&WifiDevice 上的操作:执行 connect timeout 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。ssid stringpassword stringtimeout_ms intbool — 是否成立
($&WifiDevice) disconnectpub fn (dev $&WifiDevice) disconnect()在 $&WifiDevice 上执行 disconnect 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。不返回值。
($&WifiDevice) reconnectpub fn (dev $&WifiDevice) reconnect() bool在 $&WifiDevice 上执行 reconnect 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。bool — 是否成立
(&WifiDevice) is_connectedpub fn (dev &WifiDevice) is_connected() bool&WifiDevice 上的操作:判断是否 connected。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。bool — 是否成立
(&WifiDevice) get_ippub fn (dev &WifiDevice) get_ip() string&WifiDevice 上的操作:读取 ip。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
(&WifiDevice) get_gatewaypub fn (dev &WifiDevice) get_gateway() string&WifiDevice 上的操作:读取 gateway。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
(&WifiDevice) get_netmaskpub fn (dev &WifiDevice) get_netmask() string&WifiDevice 上的操作:读取 netmask。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
(&WifiDevice) get_dnspub fn (dev &WifiDevice) get_dns() string&WifiDevice 上的操作:读取 dns。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
(&WifiDevice) has_rssipub fn (dev &WifiDevice) has_rssi() bool&WifiDevice 上的操作:判断是否具有 rssi。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。bool — 是否成立
(&WifiDevice) get_rssipub fn (dev &WifiDevice) get_rssi() int&WifiDevice 上的操作:读取 rssi。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。int — 该类型的值
(&WifiDevice) get_ssidpub fn (dev &WifiDevice) get_ssid() string&WifiDevice 上的操作:读取 ssid。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
($&WifiDevice) scanpub fn (dev $&WifiDevice) scan() int在 $&WifiDevice 上执行 scan 操作。
dev $&WifiDeviceWifiDevice 实例;以独占借用传入,方法可修改它,调用方仍持有实例。int — 该类型的值
(&WifiDevice) scan_get_ssidpub fn (dev &WifiDevice) scan_get_ssid(idx int) string&WifiDevice 上的操作:执行 scan get ssid 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intstring — 结果字符串
(&WifiDevice) scan_get_rssipub fn (dev &WifiDevice) scan_get_rssi(idx int) int&WifiDevice 上的操作:执行 scan get rssi 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intint — 该类型的值
(&WifiDevice) scan_get_channelpub fn (dev &WifiDevice) scan_get_channel(idx int) int&WifiDevice 上的操作:执行 scan get channel 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intint — 该类型的值
(&WifiDevice) scan_get_authpub fn (dev &WifiDevice) scan_get_auth(idx int) int&WifiDevice 上的操作:执行 scan get auth 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intint — 该类型的值
(&WifiDevice) scan_get_auth_strpub fn (dev &WifiDevice) scan_get_auth_str(idx int) string&WifiDevice 上的操作:执行 scan get auth str 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intstring — 结果字符串
(&WifiDevice) scan_get_bssidpub fn (dev &WifiDevice) scan_get_bssid(idx int) string&WifiDevice 上的操作:执行 scan get bssid 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intstring — 结果字符串
(&WifiDevice) get_scan_resultpub fn (dev &WifiDevice) get_scan_result(idx int) WifiScanResult&WifiDevice 上的操作:读取 scan result。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。idx intWifiScanResult — 该类型的值
(&WifiDevice) print_scan_listpub fn (dev &WifiDevice) print_scan_list(count int)&WifiDevice 上的操作:执行 print scan list 操作。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。count int不返回值。
authmode_to_stringpub fn authmode_to_string(auth int) string执行 authmode to string 操作。
auth intstring — 结果字符串
(&WifiDevice) get_status_strpub fn (dev &WifiDevice) get_status_str() string&WifiDevice 上的操作:读取 status str。
dev &WifiDeviceWifiDevice 实例;以只读借用传入,调用方仍持有实例。string — 结果字符串
wifi_phy_coexist_enablepub fn wifi_phy_coexist_enable(channel int) bool执行 wifi phy coexist enable 操作。
channel intbool — 是否成立
wifi_coexist_pause_receivepub fn wifi_coexist_pause_receive() int执行 wifi coexist pause receive 操作。
无需传入参数。
int — 该类型的值
wifi_coexist_resume_receivepub fn wifi_coexist_resume_receive(saved int) bool执行 wifi coexist resume receive 操作。
saved intbool — 是否成立
wifi_phy_calibratepub fn wifi_phy_calibrate() bool执行 wifi phy calibrate 操作。
无需传入参数。
bool — 是否成立
wifi_phy_selectpub fn wifi_phy_select(channel int) bool执行 wifi phy select 操作。
channel intbool — 是否成立