Skip to content

drivers:dectnrp:driver_event uses iface - #4

Merged
nor-bot merged 2 commits into
mainfrom
driver-event-has-iface
Sep 30, 2026
Merged

nor-bot merged 2 commits into
mainfrom
driver-event-has-iface

Conversation

@RainerSchubert

Copy link
Copy Markdown
Member

The stack need the related interface together with the called dectnrp_driver_event_cb_t. For example when creating net_pkt/net_buf and also other net functions the iface is needed.

The related radio driver device can be retrieved via const struct device *net_if_get_device(struct net_if *iface).

const uint8_t *pcc;
/** Points to PDC. */
/** Number of bytes of PCC. */
uint8_t pcc_len;

@RainerSchubert RainerSchubert Sep 23, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added also a field for length of the pcc.

This is disputable as it is a redundant information - with the field phy_type the length can be retrieved.

zephyr_library_named(dectnrp_driver)

zephyr_library_sources_ifdef(CONFIG_DECTNRP_DRIVER_NRF91
zephyr_library_sources_ifdef(CONFIG_DECTNRP_DRIVER_NRF91X1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug which slipped through .. seems I did not run the sample after changing the naming.

Signed-off-by: Rainer Schubert <rainer.schubert@deveritec.com>
  * replace device against iface at dectnrp_driver_event_cb_t
  * add pcc_len field to DECTNRP_EVENT_MSG_RECEIVED event
  * add warning about scope of pcc, pdc and event pointers

Signed-off-by: Rainer Schubert <rainer.schubert@deveritec.com>

@po3ts po3ts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@nor-bot

nor-bot commented Sep 30, 2026

Copy link
Copy Markdown
Member

@Opener-Initiative/tsg can we merge the #4 and Opener-Initiative/opener-samples#1 ????

After with i will create a Pull Request for migration-to-ncs-3.4.0
https://github.com/Opener-Initiative/opener/tree/migration-to-ncs-3.4.0

@nor-bot
nor-bot merged commit ac0bb70 into main Sep 30, 2026
2 checks passed
@nor-bot
nor-bot deleted the driver-event-has-iface branch September 30, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants