Skip to content

Conversation

@bjackson312006
Copy link
Contributor

@bjackson312006 bjackson312006 commented Jan 21, 2026

Adds new functions to the LAN8670 driver API, to assist with configuring and debugging PLCA.

@bjackson312006 bjackson312006 self-assigned this Jan 21, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds three new functions to the LAN8670 driver API to support PLCA (Physical Layer Collision Avoidance) configuration and debugging: status checking, and TOTMR (Transmit Opportunity Timer) reading/writing capabilities.

Changes:

  • Removed __attribute__((unused)) from mmd_read_register_field to enable its use in new functions
  • Added three new PLCA-related functions: LAN8670_PLCA_Get_Status, LAN8670_PLCA_ReadTOTMR, and LAN8670_PLCA_WriteTOTMR
  • Added include for u_tx_debug.h to support error logging

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
general/src/lan8670.c Implements three new PLCA functions and enables previously unused helper function
general/include/lan8670.h Declares the three new PLCA functions with documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bjackson312006 bjackson312006 requested a review from jr1221 January 21, 2026 18:14
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