Microchip® Advanced Software Framework

at86rf231/src/tal_rx_enable.c File Reference
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include "pal.h"
#include "return_val.h"
#include "tal_tx.h"
#include "tal.h"
#include "ieee_const.h"
#include "tal_constants.h"
#include "at86rf231.h"
#include "bmm.h"
#include "qmm.h"
#include "tal_rx.h"
#include "tal_internal.h"

Functions

uint8_t tal_rx_enable (uint8_t state)
 Switches receiver on or off. More...
 

uint8_t tal_rx_enable ( uint8_t  state)

Switches receiver on or off.

This function switches the receiver on (PHY_RX_ON) or off (PHY_TRX_OFF).

Parameters
stateNew state of receiver
Returns
  • TAL_BUSY if the TAL state machine cannot switch receiver on or off,
  • PHY_TRX_OFF if receiver has been switched off, or
  • PHY_RX_ON otherwise.

Referenced by mac_soft_reset(), mlme_set(), mlme_start_request(), process_data_ind_not_transient(), and wait_for_event_init().