arch/dev/radio/dw1000/dw1000-config.c
/* Configure the radio.
 *  - cfg: radio config structure of the DecaWave API
 *  
 * Note that it turns the radio OFF and resets any requested/ongoing 
 * operation.
 *
 * If returns false, the radio configuration is undefined.
 */
Configure the radio.
- cfg: radio config structure of the DecaWave API

Note that it turns the radio OFF and resets any requested/ongoing
operation.

If returns false, the radio configuration is undefined.
Configure the radio . - cfg : radio config structure of the DecaWave API Note that it turns the radio OFF and resets any requested / ongoing operation . If returns false the radio configuration is undefined .
bool
dw1000_configure(dwt_config_t *cfg) {
  if (dw1000_is_sleeping) {
    PRINTF("Err: Radio configure requested while sleeping\n");
    return 0;
  }
  int8_t irq_status = dw1000_disable_interrupt();
  dwt_forcetrxoff();
  current_cfg = *cfg;
  dwt_configure(&current_cfg);
  dw1000_enable_interrupt(irq_status);
  return true;
}
bool dw1000_configure ( dwt_config_t * cfg ) { if ( dw1000_is_sleeping ) { PRINTF ( " \n " ) ; return 0 ; } int8_t irq_status = dw1000_disable_interrupt ( ) ; dwt_forcetrxoff ( ) ; current_cfg = * cfg ; dwt_configure ( & current_cfg ) ; dw1000_enable_interrupt ( irq_status ) ; return true ; }
Configure the radio.
Configure the radio .