Skip to content

Commit 227dfb4

Browse files
jhirsirlubos
authored andcommitted
samples: dect_phy: dect_shell: scheduler: phy api handles are all 32bit
Changes phy api handles to uint32_t. in dect_phy_scheduler. Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent 6ee1394 commit 227dfb4

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

samples/dect/dect_phy/dect_shell/src/dect/common/dect_phy_api_scheduler.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ bool dect_phy_api_scheduler_list_item_remove_by_item(struct dect_phy_api_schedul
257257
}
258258

259259
struct dect_phy_api_scheduler_list_item *
260-
dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(uint16_t handle)
260+
dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(uint32_t handle)
261261
{
262262
struct dect_phy_api_scheduler_list_item *iterator = NULL;
263263
bool found = false;
@@ -279,7 +279,7 @@ dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(uint16_t handle)
279279
return iterator;
280280
}
281281

282-
bool dect_phy_api_scheduler_list_item_running_by_phy_op_handle(uint16_t handle)
282+
bool dect_phy_api_scheduler_list_item_running_by_phy_op_handle(uint32_t handle)
283283
{
284284
struct dect_phy_api_scheduler_list_item *iterator = NULL;
285285
bool found = false;
@@ -296,31 +296,31 @@ bool dect_phy_api_scheduler_list_item_running_by_phy_op_handle(uint16_t handle)
296296
return found;
297297
}
298298

299-
void dect_phy_api_scheduler_th_list_item_remove_dealloc_by_phy_op_handle(uint16_t handle)
299+
void dect_phy_api_scheduler_th_list_item_remove_dealloc_by_phy_op_handle(uint32_t handle)
300300
{
301301
(void)dect_phy_api_scheduler_raise_event_with_data(
302302
DECT_PHY_API_EVENT_SCHEDULER_OP_LIST_ITEM_RM_DEALLOC, (void *)&handle,
303-
sizeof(uint16_t));
303+
sizeof(uint32_t));
304304
}
305305

306-
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(uint16_t handle)
306+
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(uint32_t handle)
307307
{
308308
struct dect_phy_api_scheduler_list_item *iterator = NULL;
309309

310310
iterator = dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(handle);
311311
dect_phy_api_scheduler_list_item_dealloc(iterator);
312312
}
313313

314-
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle_range(uint16_t range_start,
315-
uint16_t range_end)
314+
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle_range(uint32_t range_start,
315+
uint32_t range_end)
316316
{
317317
for (int i = range_start; i <= range_end; i++) {
318318
dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(i);
319319
}
320320
}
321321

322322
void dect_phy_api_scheduler_list_item_pdu_payload_update_by_phy_handle(
323-
uint16_t handle, uint8_t *new_encoded_payload_pdu, uint16_t size)
323+
uint32_t handle, uint8_t *new_encoded_payload_pdu, uint16_t size)
324324
{
325325
struct dect_phy_api_scheduler_list_item *iterator = NULL;
326326
bool found = false;
@@ -350,7 +350,7 @@ void dect_phy_api_scheduler_list_item_pdu_payload_update_by_phy_handle(
350350
}
351351

352352
void dect_phy_api_scheduler_list_item_tx_phy_header_update_by_phy_handle(
353-
uint16_t handle, union nrf_modem_dect_phy_hdr *phy_header,
353+
uint32_t handle, union nrf_modem_dect_phy_hdr *phy_header,
354354
dect_phy_header_type_t header_type)
355355
{
356356
struct dect_phy_api_scheduler_list_item *iterator = NULL;
@@ -381,7 +381,7 @@ void dect_phy_api_scheduler_list_item_tx_phy_header_update_by_phy_handle(
381381
}
382382

383383
void dect_phy_api_scheduler_list_item_beacon_tx_sched_config_update_by_phy_op_handle(
384-
uint16_t handle, struct dect_phy_api_scheduler_list_item_config *tx_conf)
384+
uint32_t handle, struct dect_phy_api_scheduler_list_item_config *tx_conf)
385385
{
386386
struct dect_phy_api_scheduler_list_item *iterator = NULL;
387387
bool found = false;
@@ -419,7 +419,7 @@ void dect_phy_api_scheduler_list_item_beacon_tx_sched_config_update_by_phy_op_ha
419419
}
420420

421421
void dect_phy_api_scheduler_list_item_sched_config_frame_time_update_by_phy_op_handle(
422-
uint16_t handle, int64_t frame_time_diff)
422+
uint32_t handle, int64_t frame_time_diff)
423423
{
424424
struct dect_phy_api_scheduler_list_item *iterator = NULL;
425425
bool found = false;
@@ -1492,7 +1492,7 @@ static void dect_phy_api_scheduler_th_handler(void)
14921492
break;
14931493
}
14941494
case DECT_PHY_API_EVENT_SCHEDULER_OP_LIST_ITEM_RM_DEALLOC: {
1495-
uint16_t *phy_handle = (uint16_t *)event.data;
1495+
uint32_t *phy_handle = (uint32_t *)event.data;
14961496

14971497
dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(
14981498
*phy_handle);

samples/dect/dect_phy/dect_shell/src/dect/common/dect_phy_api_scheduler.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,30 +186,30 @@ struct dect_phy_api_scheduler_list_item *
186186
dect_phy_api_scheduler_list_item_add(struct dect_phy_api_scheduler_list_item *list_item);
187187

188188
struct dect_phy_api_scheduler_list_item *
189-
dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(uint16_t handle);
189+
dect_phy_api_scheduler_list_item_remove_by_phy_op_handle(uint32_t handle);
190190

191-
bool dect_phy_api_scheduler_list_item_running_by_phy_op_handle(uint16_t handle);
191+
bool dect_phy_api_scheduler_list_item_running_by_phy_op_handle(uint32_t handle);
192192

193-
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(uint16_t handle);
194-
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle_range(uint16_t range_start,
195-
uint16_t range_end);
193+
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle(uint32_t handle);
194+
void dect_phy_api_scheduler_list_item_remove_dealloc_by_phy_op_handle_range(uint32_t range_start,
195+
uint32_t range_end);
196196

197-
void dect_phy_api_scheduler_th_list_item_remove_dealloc_by_phy_op_handle(uint16_t handle);
197+
void dect_phy_api_scheduler_th_list_item_remove_dealloc_by_phy_op_handle(uint32_t handle);
198198

199199
void dect_phy_api_scheduler_list_item_pdu_payload_update_by_phy_handle(
200-
uint16_t handle, uint8_t *new_encoded_payload_pdu, uint16_t size);
200+
uint32_t handle, uint8_t *new_encoded_payload_pdu, uint16_t size);
201201

202202
void dect_phy_api_scheduler_list_item_beacon_tx_sched_config_update_by_phy_op_handle(
203-
uint16_t handle, struct dect_phy_api_scheduler_list_item_config *tx_conf);
203+
uint32_t handle, struct dect_phy_api_scheduler_list_item_config *tx_conf);
204204

205205
void dect_phy_api_scheduler_list_item_sched_config_frame_time_update_by_phy_op_handle(
206-
uint16_t handle, int64_t frame_time_diff);
206+
uint32_t handle, int64_t frame_time_diff);
207207

208208
void dect_phy_api_scheduler_list_item_beacon_rx_sched_config_update_by_phy_op_handle_range(
209209
uint16_t range_start, uint16_t range_end,
210210
struct dect_phy_api_scheduler_list_item_config *rx_conf);
211211
void dect_phy_api_scheduler_list_item_tx_phy_header_update_by_phy_handle(
212-
uint16_t handle, union nrf_modem_dect_phy_hdr *phy_header,
212+
uint32_t handle, union nrf_modem_dect_phy_hdr *phy_header,
213213
dect_phy_header_type_t header_type);
214214

215215
void dect_phy_api_scheduler_list_status_print(void);

0 commit comments

Comments
 (0)