|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|


结构体 | |
| struct | hmac_sta_pm_ctrl_info |
宏定义 | |
| #define | HMAC_ALLOW_SLEEP (1) |
| #define | HMAC_DISALLOW_SLEEP (0) |
| #define | HMAC_WAKUP_MSG_WAIT_TIMEOUT (600) |
| #define | HMAC_SLEEP_MSG_WAIT_TIMEOUT (600) |
| #define | HMAC_SLEEP_TIMER_PERIOD (20) /* 睡眠定时器20ms定时 */ |
| #define | HMAC_MSG_RETRY_NUM (3) |
| #define | HMAC_FAIL_MAX_TIMES (3) /* 连续多少次wakeup失败,可进入DFR流程 */ |
类型定义 | |
| typedef osal_u8(* | hmac_sta_pm_get_wlan_dev_state_cb) (osal_void) |
| typedef osal_s32(* | hmac_sta_pm_ignor_linkloss_cb) (osal_void) |
| typedef osal_u32(* | hmac_sta_pm_wakeup_dev_cb) (uintptr_t *buf, osal_u32 len, osal_u32 data_type) |
枚举 | |
| enum | sta_pwr_save_state_info { STA_PWR_SAVE_STATE_ACTIVE = 0 , STA_PWR_SAVE_STATE_DOZE , STA_PWR_SAVE_STATE_AWAKE , STA_PWR_SAVE_STATE_BUTT } |
| enum | HMAC_PM_STAGE { HMAC_PM_STAGE_INIT = 0 , HMAC_SLEEP_REQ_SND = 1 , HMAC_SLEEP_ALLOW_RCV = 2 , HMAC_SLEEP_DISALLOW_RCV = 3 , HMAC_SLEEP_CMD_SND = 4 , HMAC_WKUP_REQ_SND = 5 , HMAC_WKUP_RSP_RCV = 6 , HMAC_WKUP_CMD_SND = 7 , HMAC_PM_STAGE_BUTT } |
| enum | sta_pm_debug_info { STA_SYS_PM_STATE = 0 , STA_NOT_SLEEP_REASON_DUMP , STA_WAKUP_REASON_DUMP , STA_11B_BCN_INFO , STA_WAKEUP_TIME_DUMP , STA_PM_DEBUG_INFO_BUTT } |
| enum | hmac_not_sleep_type { HMAC_NOT_SLEEP_INFO_START = 0 , HMAC_NOT_SLEEP_SCAN = HMAC_NOT_SLEEP_INFO_START , HMAC_NOT_SLEEP_VAP_NUM , HMAC_NOT_SLEEP_PS_MODE , HMAC_NOT_SLEEP_HCC , HMAC_NOT_SLEEP_FRW , HMAC_NOT_SLEEP_TX_CNT , HMAC_NOT_SLEEP_INFO_BUTT } |
函数 | |
| osal_void | hmac_pm_sta_attach (hmac_vap_stru *hmac_vap) |
| osal_void | hmac_set_sta_pm_on_cb (hmac_vap_stru *hmac_vap, mac_cfg_ps_open_stru *pm_cfg) |
| osal_void | hmac_config_mvap_set_sta_pm_on (hmac_vap_stru *hmac_vap, oal_bool_enum mvap_up) |
| osal_s32 | hmac_sta_pm_on (hmac_vap_stru *hmac_vap, mac_pm_switch_enum_uint8 enable, mac_pm_ctrl_type_enum_uint8 ctrl_type) |
| osal_void | hmac_sta_pm_feed_wdg (hmac_sta_pm_ctrl_info *hmac_sta_pm_ctrl) |
| osal_void | hmac_sta_pm_stop_wdg (hmac_sta_pm_ctrl_info *hmac_sta_pm_ctrl) |
| osal_u32 | hmac_sta_pm_ctrl_set (osal_u32 flag) |
| osal_u8 | hmac_sta_pm_get_wlan_dev_state (osal_void) |
| osal_s32 | hmac_sta_pm_linkloss_ignor (osal_void) |
| osal_u32 | hmac_sta_pm_wakeup_dev (uintptr_t *buf, osal_u32 len, osal_u32 data_type) |
| WIFI_HMAC_TCM_TEXT hmac_sta_pm_ctrl_info * | hmac_sta_pm_get_ctrl (osal_void) |
| WIFI_HMAC_TCM_TEXT osal_u32 | hmac_wifi_pm_get_host_allow_sleep (osal_void) |
| osal_bool | hmac_sta_pm_achba_keepalive (osal_u8 enable) |
变量 | |
| static osal_u32 | used |
| #define HMAC_ALLOW_SLEEP (1) |
| #define HMAC_DISALLOW_SLEEP (0) |
| #define HMAC_FAIL_MAX_TIMES (3) /* 连续多少次wakeup失败,可进入DFR流程 */ |
| #define HMAC_MSG_RETRY_NUM (3) |
| #define HMAC_SLEEP_MSG_WAIT_TIMEOUT (600) |
| #define HMAC_SLEEP_TIMER_PERIOD (20) /* 睡眠定时器20ms定时 */ |
| #define HMAC_WAKUP_MSG_WAIT_TIMEOUT (600) |
| enum hmac_not_sleep_type |
| enum HMAC_PM_STAGE |
| enum sta_pm_debug_info |
| osal_void hmac_config_mvap_set_sta_pm_on | ( | hmac_vap_stru * | hmac_vap, |
| oal_bool_enum | mvap_up | ||
| ) |
| osal_void hmac_pm_sta_attach | ( | hmac_vap_stru * | hmac_vap | ) |
| osal_void hmac_set_sta_pm_on_cb | ( | hmac_vap_stru * | hmac_vap, |
| mac_cfg_ps_open_stru * | pm_cfg | ||
| ) |
| osal_void hmac_sta_pm_feed_wdg | ( | hmac_sta_pm_ctrl_info * | hmac_sta_pm_ctrl | ) |
| WIFI_HMAC_TCM_TEXT hmac_sta_pm_ctrl_info * hmac_sta_pm_get_ctrl | ( | osal_void | ) |
| osal_s32 hmac_sta_pm_on | ( | hmac_vap_stru * | hmac_vap, |
| mac_pm_switch_enum_uint8 | enable, | ||
| mac_pm_ctrl_type_enum_uint8 | ctrl_type | ||
| ) |
| osal_void hmac_sta_pm_stop_wdg | ( | hmac_sta_pm_ctrl_info * | hmac_sta_pm_ctrl | ) |
| WIFI_HMAC_TCM_TEXT osal_u32 hmac_wifi_pm_get_host_allow_sleep | ( | osal_void | ) |
| osal_void used |