Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

The Frame Transmission Unit generates and transmits the frames using PAL .

Modules

 TAL CSMA/CA Module
 Performs channel access mechanism for frame transmission For Detailed information refer CSMA-CA algorithm section of IEEE Std 802.15.4-2006.
 

Functions

void handle_tx_end_irq (bool underrun_occured)
 Handles interrupts issued due to end of transmission. More...
 
void send_frame (csma_mode_t csma_mode, bool tx_retries)
 Sends frame using trx features to handle CSMA and re-transmissions. More...
 
void tx_done_handling (void)
 Implements the handling of the transmission end. More...
 

void send_frame ( csma_mode_t  csma_mode,
bool  tx_retries 
)

Sends frame using trx features to handle CSMA and re-transmissions.

Parameters
csma_modeIndicates the CSMA Mode used
tx_retriesFlag indicating if transmission retries are requested by the MAC layer
csma_modeIndicates the CSMA mode used
tx_retriesFlag indicating if transmission retries are requested by the MAC layer
csma_modeInidicates the CSMA Mode Used
tx_retriesFlag indicating if transmission retries are requested by the MAC layer
csma_modeIndicates the CSMA mode used
tx_retriesFlag indicating if transmission retries are requested by the MAC layer

Sends frame using trx features to handle CSMA and re-transmissions.

Parameters
use_csmaFlag indicating if CSMA is requested
tx_retriesFlag indicating if transmission retries are requested by the MAC layer

References aMaxSIFSFrameSize, CMD_TX_ARET_ON, IRQ_PROCESSING_DLY_US, last_frame_length, LENGTH_FIELD_LEN, macMinLIFSPeriod_def, macMinSIFSPeriod_def, NO_CSMA_NO_IFS, NO_CSMA_WITH_IFS, pal_timer_delay, pal_trx_irq_dis, pal_trx_irq_en, PAL_WAIT_65_NS, PHY_OVERHEAD, PRE_TX_DURATION_US, set_trx_state(), SR_MAX_CSMA_RETRIES, SR_MAX_FRAME_RETRIES, TAL_CONVERT_SYMBOLS_TO_US, tal_frame_to_tx, tal_pib, tal_state, tal_sw_retry_count, tal_sw_retry_no_csma_ca, TAL_TX_AUTO, TRX_IRQ_DELAY_US, and TX_ARET_ON.

Referenced by send_frame_at_next_backoff_boundary(), and tal_tx_frame().