apps/twr_aloha/src/control.c
/*!
 * @fn slot_complete_cb(struct dpl_event * ev)
 *
 * @brief In the example this function represents the event context processing of the received range request.
 * In this case, a JSON string is constructed and written to stdio. See the ./apps/matlab or ./apps/python folders for examples on
 * how to parse and render these results.
 *
 * input parameters
 * @param inst - struct dpl_event *
 * output parameters
 * returns none
 */
@fn slot_complete_cb(struct dpl_event * ev)
@brief In the example this function represents the event context processing of the received range request.
In this case, a JSON string is constructed and written to stdio. See the ./apps/matlab or ./apps/python folders for examples on
how to parse and render these results.

input parameters
@param inst - struct dpl_event
output parameters
returns none
@fn slot_complete_cb ( struct dpl_event * ev ) @brief In the example this function represents the event context processing of the received range request . In this case a JSON string is constructed and written to stdio . See the . / apps / matlab or . / apps / python folders for examples on how to parse and render these results . input parameters @param inst - struct dpl_event output parameters returns none
static void slot_complete_cb(struct dpl_event *ev)
{
    assert(ev != NULL);
    struct uwb_rng_instance * rng = (struct uwb_rng_instance *)dpl_event_get_arg(ev);
    struct uwb_dev * inst = rng->dev_inst;
    if(g_dwm_cb.call_back != NULL) {
        g_dwm_cb.call_back(json_string);
    }
    if (inst->role&UWB_ROLE_ANCHOR) {
        uwb_rng_listen(rng, 0xfffff, UWB_NONBLOCKING);
    }
}
static void slot_complete_cb ( struct dpl_event * ev ) { assert ( ev != NULL ) ; struct uwb_rng_instance * rng = ( struct uwb_rng_instance * ) dpl_event_get_arg ( ev ) ; struct uwb_dev * inst = rng -> dev_inst ; if ( g_dwm_cb . call_back != NULL ) { g_dwm_cb . call_back ( json_string ) ; } if ( inst -> role & UWB_ROLE_ANCHOR ) { uwb_rng_listen ( rng , 0xfffff , UWB_NONBLOCKING ) ; } }
@fn slot_complete_cb(struct dpl_event * ev)
 @brief In the example this function represents the event context processing of the received range request.
@fn slot_complete_cb ( struct dpl_event * ev ) @brief In the example this function represents the event context processing of the received range request .