apps/tag_mesh/src/main.c
static bool
error_cb(struct uwb_dev * inst, struct uwb_mac_interface * cbs)
{ 
    if(inst->fctrl != FCNTL_IEEE_RANGE_16){
        return false;
    }   

    uint32_t utime = os_cputime_ticks_to_usecs(os_cputime_get32());
    if (inst->status.start_rx_error)
        printf("{\"utime\": %lu,\"msg\": \"start_rx_error,%s:%d\"}\n",utime, __FILE__, __LINE__);
    if (inst->status.start_tx_error)
        printf("{\"utime\": %lu,\"msg\": \"start_tx_error,%s:%d\"}\n",utime, __FILE__, __LINE__);
    if (inst->status.rx_error)
        printf("{\"utime\": %lu,\"msg\": \"rx_error\",%s:%d\"}\n",utime, __FILE__, __LINE__);

    return true;
}
/*! 
 * @fn error_cb(struct os_event *ev)
 *
 * @brief This callback is in the interrupt context and is called on error event.
 * In this example just log event. 
 * Note: interrupt context so overlapping IO is possible
 * input parameters
 * @param inst - dw1000_dev_instance_t * inst
 *
 * output parameters
 *
 * returns none 
 */
@fn error_cb(struct os_event *ev)
@brief This callback is in the interrupt context and is called on error event.
In this example just log event.
Note: interrupt context so overlapping IO is possible
input parameters
@param inst - dw1000_dev_instance_t * inst

output parameters

returns none
@fn error_cb ( struct os_event * ev ) @brief This callback is in the interrupt context and is called on error event . In this example just log event . Note : interrupt context so overlapping IO is possible input parameters @param inst - dw1000_dev_instance_t * inst output parameters returns none
static bool
error_cb(struct uwb_dev * inst, struct uwb_mac_interface * cbs)
{ 
    if(inst->fctrl != FCNTL_IEEE_RANGE_16){
        return false;
    }   
    uint32_t utime = os_cputime_ticks_to_usecs(os_cputime_get32());
    if (inst->status.start_rx_error)
        printf("{\"utime\": %lu,\"msg\": \"start_rx_error,%s:%d\"}\n",utime, __FILE__, __LINE__);
    if (inst->status.start_tx_error)
        printf("{\"utime\": %lu,\"msg\": \"start_tx_error,%s:%d\"}\n",utime, __FILE__, __LINE__);
    if (inst->status.rx_error)
        printf("{\"utime\": %lu,\"msg\": \"rx_error\",%s:%d\"}\n",utime, __FILE__, __LINE__);
    return true;
}
static bool error_cb ( struct uwb_dev * inst , struct uwb_mac_interface * cbs ) { if ( inst -> fctrl != FCNTL_IEEE_RANGE_16 ) { return false ; } uint32_t utime = os_cputime_ticks_to_usecs ( os_cputime_get32 ( ) ) ; if ( inst -> status . start_rx_error ) printf ( " \" \" \" \" \" \" \n " , utime , __FILE__ , __LINE__ ) ; if ( inst -> status . start_tx_error ) printf ( " \" \" \" \" \" \" \n " , utime , __FILE__ , __LINE__ ) ; if ( inst -> status . rx_error ) printf ( " \" \" \" \" \" \" \" \n " , utime , __FILE__ , __LINE__ ) ; return true ; }
@fn error_cb(struct os_event *ev)
 @brief This callback is in the interrupt context and is called on error event.
@fn error_cb ( struct os_event * ev ) @brief This callback is in the interrupt context and is called on error event .