Skip to content

Commit ce87944

Browse files
committed
libs2: zwave_transports: Align libs2 API in zwave_s2_transport.c (#51)
Previous changes are not atomic (because comming from different context) they are now isolated and grouped in same PR. Bug-ZPC: #50 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 3912ca4 commit ce87944

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

applications/zpc/components/zwave/zwave_transports/s2/src/zwave_s2_transport.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ uint8_t S2_send_frame_multi(struct S2 *ctxt,
414414
0);
415415
}
416416

417-
void S2_notify_nls_state_report(node_t srcNode, uint8_t class_id, uint8_t nls_capability, uint8_t nls_state)
417+
418+
void S2_notify_nls_state_report(node_t srcNode, uint8_t class_id, bool nls_capability, bool nls_state)
418419
{
419420
(void)class_id;
420421

@@ -442,23 +443,22 @@ void S2_save_nls_state(void)
442443
// not relevant for ZPC
443444
}
444445

445-
void S2_nls_node_list_get(node_t srcNode, uint8_t class_id, uint8_t request)
446+
int8_t S2_get_nls_node_list(node_t srcNode, bool request, bool *is_last_node, uint16_t *node_id, uint8_t *granted_keys, bool *nls_state)
446447
{
447448
// to be implemented later on
448449
(void)srcNode;
449-
(void)class_id;
450450
(void)request;
451+
return 0;
451452
}
452453

453-
void S2_nls_node_list_report(node_t srcNode, uint8_t class_id, uint8_t last_node, uint16_t id_of_node, uint8_t keys_node_bitmask, uint8_t nls_state)
454+
int8_t S2_notify_nls_node_list_report(node_t srcNode, uint16_t id_of_node, uint8_t keys_node_bitmask, bool nls_state)
454455
{
455456
// to be implemented later on
456457
(void)srcNode;
457-
(void)class_id;
458-
(void)last_node;
459458
(void)id_of_node;
460459
(void)keys_node_bitmask;
461460
(void)nls_state;
461+
return 0;
462462
}
463463

464464
/************************* Our interface functions ****************************/
@@ -685,4 +685,4 @@ sl_status_t zwave_s2_abort_send_data(zwave_tx_session_id_t session_id)
685685
return SL_STATUS_OK;
686686
}
687687
return SL_STATUS_NOT_FOUND;
688-
}
688+
}

0 commit comments

Comments
 (0)