Hi! I am studying some program code of BLE examples. I have a doubt about what does the evt_handler() do. E.g. in the example "ble_app_hrs_s130_pca10028"
static void on_hrm_cccd_write(ble_hrs_t * p_hrs, ble_gatts_evt_write_t * p_evt_write)
{...p_hrs->evt_handler(p_hrs, &evt); .. }
in the example "ble_app_rscs_s130_pca10028
static void on_meas_cccd_write(ble_rscs_t * p_rscs, ble_gatts_evt_write_t * p_evt_write)
{...p_rscs->evt_handler(p_rscs, &evt);...}
I can just find the typedef struct about it, such as:
typedef void(* ble_hrs_evt_handler_t )(ble_hrs_t *p_hrs, ble_hrs_evt_t *p_evt)
But I can not unstandard what does the evt_handler() do from the the typedef. Could anybody give me some explain about it or tell me where can find the more detail definition about the function "evt_handler()"? Thank you for your reply and help!