Skip to content

Add Neptune Orca CAN APIs#29

Merged
drebbe-intrepid merged 6 commits into
masterfrom
canfd_mdio
Jan 27, 2026
Merged

Add Neptune Orca CAN APIs#29
drebbe-intrepid merged 6 commits into
masterfrom
canfd_mdio

Conversation

@drebbe-intrepid

@drebbe-intrepid drebbe-intrepid commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

Adds CAN communication support for FreeWili devices with Neptune Orca hardware (I2C address 0x48).

CAN APIs Added

  • can_transmit() - Send CAN/CAN-FD messages on channels 0-1
  • can_enable_streaming() - Enable/disable CAN RX event streaming
  • can_set_transmit_periodic() - Configure periodic message transmission (8 slots per channel)
  • can_enable_transmit_periodic() - Start/stop periodic transmission
  • can_set_rx_filter() - Configure hardware RX filters (32 filters per channel)
  • CANData.from_string() - Parse CAN event data with error handling for empty payloads

Testing

  • Comprehensive test suite in test_can.py with hardware detection
  • Tests use @pytest.mark.xfail to gracefully handle missing Neptune hardware
  • Updated I2C tests to skip when Neptune is present (avoids false failures)

Documentation

  • Added CAN, WilEye, and file download examples to examples.rst
  • Fixed file mapping: .py files now correctly labeled "Python script"

@drebbe-intrepid drebbe-intrepid changed the title added CAN APIs Add Neptune Orca CAN APIs Jan 27, 2026
@drebbe-intrepid

Copy link
Copy Markdown
Contributor Author

@copilot code review please

Copilot AI mentioned this pull request Jan 27, 2026

Copilot AI commented Jan 27, 2026

Copy link
Copy Markdown

@drebbe-intrepid I've opened a new pull request, #30, to work on those changes. Once the pull request is ready, I'll request review from you.

@drebbe-intrepid drebbe-intrepid merged commit f52fbd8 into master Jan 27, 2026
1 check passed
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.

2 participants