Lines Matching refs:cb
41 struct lorawan_downlink_cb *cb; in lorawan_emul_send_downlink() local
44 SYS_SLIST_FOR_EACH_CONTAINER(&dl_callbacks, cb, node) { in lorawan_emul_send_downlink()
45 if ((cb->port == LW_RECV_PORT_ANY) || (cb->port == port)) { in lorawan_emul_send_downlink()
46 cb->cb(port, data_pending, rssi, snr, len, data); in lorawan_emul_send_downlink()
126 void lorawan_register_battery_level_callback(lorawan_battery_level_cb_t cb) in lorawan_register_battery_level_callback() argument
128 battery_level_cb = cb; in lorawan_register_battery_level_callback()
131 void lorawan_register_downlink_callback(struct lorawan_downlink_cb *cb) in lorawan_register_downlink_callback() argument
133 sys_slist_append(&dl_callbacks, &cb->node); in lorawan_register_downlink_callback()
136 void lorawan_register_dr_changed_callback(lorawan_dr_changed_cb_t cb) in lorawan_register_dr_changed_callback() argument
138 dr_changed_cb = cb; in lorawan_register_dr_changed_callback()
153 void lorawan_emul_register_uplink_callback(lorawan_uplink_cb_t cb) in lorawan_emul_register_uplink_callback() argument
155 uplink_cb = cb; in lorawan_emul_register_uplink_callback()