xensiv-radar-sensing
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Callbacks

General Description

Callbacks used in the library.


Typedefs

typedef void(* mtb_radar_sensing_callback_t) (mtb_radar_sensing_context_t *context, mtb_radar_sensing_event_t event, mtb_radar_sensing_event_info_t *event_info, void *data)
 Callback function prototype that can be used to handle mtb_radar_sensing_event_t events. More...
 

Functions

cy_rslt_t mtb_radar_sensing_register_callback (mtb_radar_sensing_context_t *context, mtb_radar_sensing_callback_t callback, void *data)
 This function registers callback for radar service. More...
 

Typedef Documentation

◆ mtb_radar_sensing_callback_t

typedef void(* mtb_radar_sensing_callback_t) (mtb_radar_sensing_context_t *context, mtb_radar_sensing_event_t event, mtb_radar_sensing_event_info_t *event_info, void *data)

Callback function prototype that can be used to handle mtb_radar_sensing_event_t events.

The callback needs to be registered to mtb_radar_sensing_register_callback(). The timestamp indicates the start of events and reflects current system time that is passed to mtb_radar_sensing_process()

Function Documentation

◆ mtb_radar_sensing_register_callback()

cy_rslt_t mtb_radar_sensing_register_callback ( mtb_radar_sensing_context_t context,
mtb_radar_sensing_callback_t  callback,
void *  data 
)

This function registers callback for radar service.

Callback is invoked as soon as an event is detected.

Parameters
contextContext of radar.
callbackCallback function.
dataData pointer that is passed to the invoke of the event callback.
Returns
cy_rslt_t A success or a failure status.