Common driver for the AT86RF family transceivers.
This layer provides Transceiver Abstraction Layer(TAL) for the application across AT86RF family.
Modules | |
Related Project(s) | |
In this section you can find all the projects related to the AT86RFx Driver. | |
APIs to access RF module | |
Macros | |
#define | CCA_MODE_DEFAULT (0x01) |
Default value of CCA mode. More... | |
#define | CLEAR_TRX_IRQ() |
Clear the transceiver interrupts. More... | |
#define | DISABLE_TRX_IRQ() |
Disable the transceiver interrupts. More... | |
#define | ENABLE_TRX_IRQ() |
Enables the transceiver interrupts. More... | |
#define | FCS_LEN (2) |
Length (in octets) of FCS. More... | |
#define | FUNC_PTR void * |
Definition of a function pointer. More... | |
#define | LARGE_BUFFER_SIZE (130) |
Size of the buffer allocated for transceiver reception. More... | |
#define | LENGTH_FIELD_LEN (1) |
Size of the length parameter. More... | |
#define | MAX_CSMA_BACKOFFS_DEFAULT (0x04) |
Default value of maximum csma ca backoffs. More... | |
#define | MAXBE_DEFAULT (0x05) |
Default value of maximum backoff exponent used while performing csma ca. More... | |
#define | MINBE_DEFAULT (0x03) |
Default value of minimum backoff exponent used while performing csma ca. More... | |
#define | P_ON_TO_CLKM_ATTEMPTS |
Ratio between max time to transceiver poll delay. More... | |
#define | PHY_MAX_LENGTH (127) |
Maximum length of a phy packet. More... | |
#define | PLL_LOCK_ATTEMPTS (3) |
Value used for checking proper locking of PLL during switch from TRX_PFF to PLL_ON. More... | |
#define | READ_ACCESS_COMMAND (0x80) |
Read access command to the transceiver. More... | |
#define | RST_HIGH() |
Reset pin high. More... | |
#define | RST_LOW() |
Reset pin low. More... | |
#define | SLEEP_TO_TRX_OFF_ATTEMPTS |
Ratio between max time to transceiver poll delay. More... | |
#define | SLP_TR_HIGH() |
Sleep pin high. More... | |
#define | SLP_TR_LOW() |
Sleep pin low. More... | |
#define | TRX_CMD_FR (0x20) |
Frame read command of transceiver. More... | |
#define | TRX_CMD_FW (0x60) |
Frame write command of transceiver. More... | |
#define | TRX_CMD_SR (0x00) |
SRAM read command of transceiver. More... | |
#define | TRX_CMD_SW (0x40) |
SRAM write command of transceiver. More... | |
#define | TRX_IRQ_DEFAULT TRX_IRQ_TRX_END |
Default interrupt configuration for transceiver. More... | |
#define | TRX_POLL_WAIT_TIME_US (100) |
Value in us used for delay between poll attempts for transceiver access. More... | |
#define | WRITE_ACCESS_COMMAND (0xC0) |
Write access command of the transceiver. More... | |
Typedefs | |
typedef enum at86rfx_retval_tag | at86rfx_retval_t |
These are the return values of the RF API. More... | |
Enumerations | |
enum | at86rfx_retval_tag { AT86RFX_SUCCESS = 0x00, AT86RFX_FAILURE = 0x01, AT86RFX_CHANNEL_ACCESS_FAILURE = 0x02 } |
These are the return values of the RF API. More... | |
Variables | |
uint8_t | at86rfx_rx_buffer [] |
Static receive buffer that can be used to upload a frame from the trx. More... | |
#define CCA_MODE_DEFAULT (0x01) |
Default value of CCA mode.
#define CLEAR_TRX_IRQ | ( | ) |
#define DISABLE_TRX_IRQ | ( | ) |
Disable the transceiver interrupts.
Referenced by at86rfx_tx_frame().
#define ENABLE_TRX_IRQ | ( | ) |
Enables the transceiver interrupts.
Referenced by at86rfx_init(), and at86rfx_tx_frame().
#define FCS_LEN (2) |
Length (in octets) of FCS.
#define FUNC_PTR void * |
Definition of a function pointer.
Referenced by app_led_event(), awake_timer_cb(), bc_data_cb(), bcn_payload_update_cb(), csma_backoff_calculation(), gts_data_cb(), handle_incoming_msg(), handle_input(), indirect_data_cb(), led_blinker_timer_handler_cb(), led_handling(), mac_process_tal_tx_status(), mac_t_gts_cb(), marker_rsp_timer_handler_cb(), marker_tx_timer_handler_cb(), network_scan_indication_cb(), network_search_indication_cb(), nlme_get_confirm(), nlme_reset_confirm(), nlme_rx_enable_confirm(), nlme_start_confirm(), pbp_rec_pair_confirm(), peer_req_send_task(), per_mode_initiator_init(), per_mode_initiator_rx_cb(), per_mode_initiator_task(), per_mode_receptor_rx_cb(), per_mode_receptor_task(), pktstream_test(), print_ch_change_submenu(), print_node_status(), print_pairing_table(), print_sub_mode_ch_ag_setup(), print_unpair_submenu(), process_data_ind_not_transient(), range_test_timer_handler_cb(), range_test_tx_on_init(), range_test_tx_timer_handler_cb(), run_nlme_auto_discovery_test(), run_nlme_reset_test(), send_range_test_marker_rsp(), send_remote_cmd(), serial_data_handler(), set_trx_state(), start_beacon_loss_timer(), start_range_test(), stop_pkt_streaming(), tal_init(), tal_reset(), tal_trx_wakeup(), usr_mcps_data_ind(), usr_mlme_gts_ind(), vendor_data_ind(), vendor_data_request(), wait_for_conf_init(), and zrc_cmd_indication().
#define LARGE_BUFFER_SIZE (130) |
Size of the buffer allocated for transceiver reception.
Referenced by build_data_frame(), configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), handle_received_frame_irq(), mac_gts_table_update(), mac_send_gts_ind(), mlme_gts_request(), parse_mpdu(), tal_init(), tal_task(), transmit_frame(), wpan_mcps_data_req(), wpan_mlme_reset_req(), and wpan_mlme_set_req().
#define LENGTH_FIELD_LEN (1) |
Size of the length parameter.
#define MAX_CSMA_BACKOFFS_DEFAULT (0x04) |
Default value of maximum csma ca backoffs.
#define MAXBE_DEFAULT (0x05) |
Default value of maximum backoff exponent used while performing csma ca.
#define MINBE_DEFAULT (0x03) |
Default value of minimum backoff exponent used while performing csma ca.
#define P_ON_TO_CLKM_ATTEMPTS |
Ratio between max time to transceiver poll delay.
#define PHY_MAX_LENGTH (127) |
Maximum length of a phy packet.
Referenced by app_task().
#define PLL_LOCK_ATTEMPTS (3) |
Value used for checking proper locking of PLL during switch from TRX_PFF to PLL_ON.
#define READ_ACCESS_COMMAND (0x80) |
Read access command to the transceiver.
Referenced by pal_trx_reg_read(), and trx_reg_read().
#define RST_HIGH | ( | ) |
#define RST_LOW | ( | ) |
#define SLEEP_TO_TRX_OFF_ATTEMPTS |
Ratio between max time to transceiver poll delay.
#define SLP_TR_HIGH | ( | ) |
Sleep pin high.
#define SLP_TR_LOW | ( | ) |
#define TRX_CMD_FR (0x20) |
Frame read command of transceiver.
Referenced by pal_trx_frame_read(), and trx_frame_read().
#define TRX_CMD_FW (0x60) |
Frame write command of transceiver.
Referenced by pal_trx_frame_write(), and trx_frame_write().
#define TRX_CMD_SR (0x00) |
SRAM read command of transceiver.
Referenced by trx_sram_read().
#define TRX_CMD_SW (0x40) |
SRAM write command of transceiver.
Referenced by trx_aes_wrrd(), and trx_sram_write().
#define TRX_IRQ_DEFAULT TRX_IRQ_TRX_END |
Default interrupt configuration for transceiver.
#define TRX_POLL_WAIT_TIME_US (100) |
Value in us used for delay between poll attempts for transceiver access.
#define WRITE_ACCESS_COMMAND (0xC0) |
Write access command of the transceiver.
Referenced by pal_trx_reg_write(), and trx_reg_write().
typedef enum at86rfx_retval_tag at86rfx_retval_t |
These are the return values of the RF API.
enum at86rfx_retval_tag |
uint8_t at86rfx_rx_buffer[] |
Static receive buffer that can be used to upload a frame from the trx.
Referenced by at86rfx_task().