Implements the MLME-RX-ENABLE functionality.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <compiler.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "return_val.h"
#include "pal.h"
#include "bmm.h"
#include "qmm.h"
#include "tal.h"
#include "ieee_const.h"
#include "mac_msg_const.h"
#include "mac_api.h"
#include "mac_msg_types.h"
#include "mac_data_structures.h"
#include "stack_config.h"
#include "mac_internal.h"
#include "mac.h"
#include "mac_config.h"
#include "mac_build_config.h"
Functions | |
static void | gen_rx_enable_conf (buffer_t *buf, uint8_t status) |
static void | handle_rx_on (uint32_t rx_on_duration_symbols, uint8_t *m) |
static uint8_t | mac_rx_enable (void) |
static void | mac_t_rx_off_cb (void *callback_parameter) |
static void | mac_t_rx_on_cb (void *req_buffer) |
void | mlme_rx_enable_request (uint8_t *m) |
Implement the MLME-RX-ENABLE.request primitive. More... | |
Variables | |
static uint32_t | rx_off_time_symbols |
|
static |
References BMM_BUFFER_POINTER, mlme_rx_enable_conf_tag::cmdcode, mac_nhle_q, MLME_RX_ENABLE_CONFIRM, qmm_queue_append(), and mlme_rx_enable_conf_tag::status.
Referenced by handle_rx_on(), and mlme_rx_enable_request().
|
static |
References Assert, FUNC_PTR, gen_rx_enable_conf(), MAC_INVALID_PARAMETER, mac_rx_enable(), MAC_SUCCESS, mac_t_rx_off_cb(), MAC_TX_ACTIVE, pal_is_timer_running(), pal_timer_start(), pal_timer_stop(), PHY_RX_ON, T_Rx_Enable, TAL_CONVERT_SYMBOLS_TO_US, and TIMEOUT_RELATIVE.
Referenced by mac_t_rx_on_cb(), and mlme_rx_enable_request().
|
static |
References mac_rx_enabled, mac_trx_wakeup(), PHY_RX_ON, and tal_rx_enable().
Referenced by handle_rx_on().
|
static |
References FUNC_PTR, mac_pib, mac_radio_sleep_state, mac_rx_enabled, mac_pib_tag::mac_RxOnWhenIdle, mac_sleep_trans(), MIN_TIMEOUT, pal_timer_start(), PHY_TRX_OFF, RADIO_AWAKE, T_Rx_Enable, tal_rx_enable(), and TIMEOUT_RELATIVE.
Referenced by handle_rx_on(), and mlme_rx_enable_request().
|
static |
References handle_rx_on(), and rx_off_time_symbols.
Referenced by mlme_rx_enable_request().
|
static |
Referenced by mac_t_rx_on_cb(), and mlme_rx_enable_request().