arch/dev/radio/dw1000/dw1000-config.c
/* Configure only the TX parameters of the radio */
Configure only the TX parameters of the radio
Configure only the TX parameters of the radio
bool 
dw1000_configure_tx(const dwt_txconfig_t* tx_cfg, bool smart) {
  if (dw1000_is_sleeping) {
    PRINTF("Err: TX configure requested while sleeping\n");
    return 0;
  }
  int8_t irq_status = dw1000_disable_interrupt();
  current_tx_cfg = *tx_cfg;
  dwt_configuretxrf(&current_tx_cfg);
  current_smart_power = smart;
  dwt_setsmarttxpower(current_smart_power);
  dw1000_enable_interrupt(irq_status);
  return 1;
}
bool dw1000_configure_tx ( const dwt_txconfig_t * tx_cfg , bool smart ) { if ( dw1000_is_sleeping ) { PRINTF ( " \n " ) ; return 0 ; } int8_t irq_status = dw1000_disable_interrupt ( ) ; current_tx_cfg = * tx_cfg ; dwt_configuretxrf ( & current_tx_cfg ) ; current_smart_power = smart ; dwt_setsmarttxpower ( current_smart_power ) ; dw1000_enable_interrupt ( irq_status ) ; return 1 ; }
Configure only the TX parameters of the radio
Configure only the TX parameters of the radio