Repository navigation
Bus master: I2C master, SPI modes 1/2, la_dir, send-and-capture (SDK + MCP 2.13.13) - #76
Merged
Merged
Conversation
…ci 2.13.13) bp.open_i2c() returns an I2CMaster (write/read/write_read/read_reg/write_reg/probe/scan/xfer); a NACK raises I2CNackError with nack_at. open_spi takes modes 1 and 2 on gateware v55+. capture_la(send=I2CSend|SpiSend|GpioSend) returns LaCapture.send_result and keeps 64 pre-trigger samples with an edge trigger. la_dir, pin_directions, apply_pin_directions; LaPinState dir/warn; DirectionConflictError; Capabilities.gateware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d (embeddedci-mcp 2.13.13) capture_la(send=...) runs one I2C, SPI or gpio transaction after the arm and triggers on its first line when no trigger is given. set_wiring sends the profile's pin directions. SPI tools take modes 1 and 2. Needs embeddedci 2.13.13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wardviaene
force-pushed
the
bus-master
branch
from
November 13, 2026 20:08
d4da760 to
75e3d1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support for the BenchPod bus-master firmware commands (firmware branch
bus-master-gw, gateware v55).SDK (embeddedci 2.13.13)
bp.open_i2c(sda, scl, *, hz=100_000, pullups="pod")returns anI2CMaster:write,read,write_read,read_reg,write_reg,probe,scan,xfer,close, and a context manager. A NACK raisesI2CNackError(addr,nack_at);xferreturns theI2CResultwithout raising.open_spitakes modes 1 and 2, refused ahead on gateware older than v55.capture_la(..., send=I2CSend | SpiSend | GpioSend)with the reply onLaCapture.send_result. An edge trigger withoutpre_samplesgets 64, so the decoder sees the first START.la_dir,pin_directions(from the wiring profile),apply_pin_directions;LaPinState.dir/warn/warnings;DirectionConflictError;Capabilities.gateware.UnsupportedFeatureError.The SDK does not push pin directions on its own when a wiring profile is set (a setter that talks to the pod, and a driven pin makes
la_dirfail);apply_pin_directions()does it on request.MCP (embeddedci-mcp 2.13.13)
i2c_open,i2c_transfer,i2c_scan,i2c_close,la_dir.capture_latakessend; withouttrigger_lait triggers on SDA or CS falling, or the gpio pin's edge, and opens the I2C or SPI session from the wiring when none is open.set_wiringsends the profile's pin directions (resultdirections).Docs in both READMEs and changelogs; host tests against the fake transports.
Not done: HW e2e waits for the firmware release (gateware v55 is not released). No release.
🤖 Generated with Claude Code