ww_stdlib features and roadmap¶
This file is the single source of truth for what the WireWeaver standard library supports, what is being worked on and what is planned, for humans and AI agents alike.
How to use this file¶
- Status of each item:
- โ done
- ๐ง in progress or partially done (the note says what is missing)
- ๐ planned
- ๐ก idea, not committed to
- โ blocked (the note says on what)
- ๐ probably done or obsolete, needs a check before closing
- ๐งช done and tested on the host, the check on hardware is still open (the note says what to check)
- ๐ known bug, not yet fixed (the note says how to hit it)
- Target is the release an item is planned for (
v0.5is WireWeaver's next release, which these items were planned with;v0.5.xthe next compatible release after it). No tag means not scheduled. - IDs (
STD-12,TOOL-28) are stable: never renumber or reuse one. New items take the next free number of their area. Use the ID in commit messages, CHANGELOG entries and codeTODOs (// TODO(STD-20): ...). When talking to people, name an ID with a short slug from its title (STD-12 ww-dfu-api), never bare. - The items came from WireWeaver's
FEATURES.mdwith their IDs, where these crates were developed: every item whose code lies wholly in this repository's crates. IDs not listed here (SW,DER,API,SRV,CLT,EVO,TOOL,TEST, ... and otherSTDitems, such as the base types' andww_timebase's) are wire_weaver's or ww_base's, and so are paths outside this repository's crates (wire_weaver_cli,wire_weaver_client,docs/api/..). Paths in the items name the old layout where they were written:ww_stdlib/<crate>is<crate>/here,docs/std_library/<page>isdocs/<page>, and thewwcommands ofwire_weaver_cli/src/cmd/are inww_std_cli. - Items are grouped by area. Each area lists what works first (โ ), then open items.
- When finishing work, update the item in the same change: mark it โ , move it up to the done items of its area and add a pointer (docs page, crate, test or example). Don't delete done items. Move items that turn out to be obsolete to Dropped and superseded with a one-line reason.
- New ideas go into the matching area as ๐ก. Small code-level gaps stay as
TODOcomments in the source; only those that limit users or block a feature get an item here.
Standard APIs (STD)¶
- โ
STD-5
ww_gpio. - โ
STD-19
ww_pwmโPwm/PwmChanneloutputs (set_output,set_duty,stop,state),PwmCapture/PwmCaptureChannelmeasurements (frequency, duty, pulse width, edge count) over a plain stream with sidebandOpen/Close. Full rustdoc, mock server and in-process tests (tests/io_pwm), docs page (docs/std_library/ww_pwm.md) (STD-13). - โ
STD-18
ww_adcโAdc,AdcStream(sidebandOpen/Close),AdcCapture. Fill-in done: full rustdoc,tests/io_adcmock server (one test per trait),docs/std_library/ww_adc.md, API snapshot (STD-13). - โ
STD-20
ww_onewireโOneWire: addressed transactions with strong pull-up, reset, paged and bit-level (triplet) ROM search, the real Dallas/Maxim search algorithm. Full rustdoc, docs page (docs/std_library/ww_onewire.md), API snapshot, in-process test with a mock bus (tests/io_onewire). - โ
STD-114
ww_can_bustyped numbers ยทv0.5โ the CAN traits' bare integers as exact_units types throughww_si(AGENTS.md "Numbers are typed", the stdlib units survey): bit timing segments and limits asFixed<TimeQuantum, One, _>, the prescaler asPrescaler(Per<Cycle, TimeQuantum>), TDC offsets, filter, measured delay and XL PWM symbols asFixed<Cycle, One, u8>(clock periods), bus load and sample point asShare(โฐ,Range<0, 1000>), frame, buffer, filter, FIFO, event and word counts as countedFixeds, buffer, FIFO and filter positions asBufferIndex,FifoIndex,FilterIndex(one type forRxFrame::filterandTriggerKind::RxCheck::filter), TTCAN cycles as boundedFixed/Index<Cycle, ..>and its time marks asIndex<Tick, u16>,Performancerates asPer<Frame, Second>/Per<Byte, Second>,TxMarkerandVcIdnewtypes,TtErrorLevelfor the TTCAN error level,TtRole::Master::priorityaU3;BitTiming::bit_ratetakes theHertzofCapabilities::clock. Raw protocol fields (TEC / REC,TURCF, the XL SDT and acceptance field) stay plain with#[no_unit_hint]. Wire change EVO-62. Teststests/io_can,tests/io_can_group. Docs. - โ
STD-113
ww_onewire/ww_uarttyped numbers ยทv0.5โ the stdlib units survey's (P2401#11nov-0948f) ww_onewire/ww_uart piece of AGENTS.md "Numbers are typed":ww_onewire'ssearch'sfamily: Option<u8>isOption<FamilyCode>(FamilyCode(pub u8), a transparent newtype, same bytes),OneWireTransaction::read_len: u16isww_si::Bytes<u16>(same bytes),OneWireConfig::pin: u8isww_si::Index<ww_si::units::Pin, u8>(same bytes), andSearchState::last_discrepancy: u8isww_si::IndexFrom1<RomBit, u8, Range<1, 64>>(RomBita counted marker of this crate, declared withunit!): the added1..=64bound is a wire break, EVO-61, on a new wire linew1.0->w2.0.ww_uart'stx_pending(),Capabilities::rx_buffer/tx_buffer: u32areww_si::Bytes<u32>,UartConfig/MonitorConfig::idle_chars: u8areww_si::Count<ww_si::units::Char, u8>,UartConfig::frame_bits()/MonitorConfig::frame_bits()returnOption<ww_si::Fixed<ww_si::units::Bit, ww_si::prefix::One, u32>>: all same bytes, no wire bump.strong_pullup,send_break's durations andio_level(both crates) stayQuantityfor now (P2401 Q2, a separate cross-cutting change); IO item timestamps (RxChunk::end) staySecond(Q1, with the framework device-timestamp change).ww_onewire_0_1_0.ron/ww_uart_0_1_0.ronare saved again in place (never published).tests/stdlib_evolutionchecks both. - โ
STD-24
ww_firmware_info/ww_board_info/ww_uid/ww_user_infodevice contract ยทv0.5โ the info crates every device implements.FirmwareInfoconst itemsFIRMWARE(name, version, git, build time, profile),BUILD_ID(GNU build id, finds the ELF) and optionalBUILD_RECORD;build::emit()+firmware_summary!()forbuild.rs,build_id()reader;LastReset(ResetRecordwith aFaultper architecture behindcortex-m/riscv, stack words,boot_count,clear).BoardInfo::BOARDwithRevisionSource(Record,Strap,Assumed,Provisional) and optionalREWORKS(Rework { id, title, applied }, up to 16, numbered since STD-98;ww infoprints them).Uid::IDS, first id is the primary one (USB serial).UserInfowith boundedname/ optionalnotes,UserInfoError,CAPABILITIESand the persistence rule. Docsdocs/std_library/ww_{firmware_info,board_info,uid,user_info}.md, teststests/{firmware_info,board_info,uid,user_info}. The const items are served byget_handlers until constant items come from the introspection data; properties cannot carry#[errors]yet. - โ
STD-98 Recording a board rework ยท
v0.5โww_board_inforeworks are numbers,ReworkId(u16)per board revision (Roman, 2 Nov 2026), so a record keeps a bit per number and the titles stay in the firmware.Rework.title: Option<..>,Nonefor an applied number the firmware doesn't know (written by a newer one: since STD-101 the board refuses to boot unless an allowance for its image covers it). OptionalBoardInfo::set_reworks(changes, program): all changes or none, dry run,ReworkChange(Unchanged,WouldWrite,Writtenfrom the next boot),ReworkError(UnknownRework, never stored;Conflict;ProductionRecord).ww_board_info::table(no_std) answers both from the firmware's table (ReworkTable,ReworkSet,apply,list,unknown,known_ids).ww infoprints unknown ones. Docsdocs/std_library/ww_board_info.md#recording-a-rework, teststests/board_info,tests/device_report. Theww board reworkcommand is TOOL-28; the first device is usb_io_fw PLAT-17. - โ
STD-25
ww_countersoncntwords ยทv0.5โ the device'scntcounters as raw buffer words, decoded on the host with the firmware's ELF found by its build id:Counters::INFO(format, used/capacity words of RAM and backup, build id),read(buffer, offset)pages ofUVlq32,reset, optionalwatchstream (not served by anything yet);read_words/reset_wordsservecntbuffers, featurehosthasWwSource(acnt_core::Source).ww counters read|watch|tui|reset|infoshows thecnt_viewviews (CLT-10). In thecntrepo:cnt::ram_used_words(), word sources and ELF lookup by build id incnt_core,cnt_view, and the probe path checks the build id too. Docsdocs/std_library/ww_counters.md, teststests/counters;cnt_core/cnt_view0.5 from crates.io. - โ
STD-27
reset-record-ageยทv0.5โww_firmware_info::ResetRecord::boots_since_crash: boots since the crash data was saved (0 = the last reset was the crash), so a record kept across later normal resets shows how old it is.bedrock_crashcounts it (Crash::boots_since) and the firmware template fills it. - โ
STD-28
ww_indicationlightweight rework โ cut to one required item:mode: Mode(AllOff/OnlyEssential/Normal).brightness: Brightness(5 levels, one setting for all indicators),identify(duration)(blink everything to find the unit on a bench, errors onCommonError) andNAMES(indicator names, API-36) are each their own#[optional]item. Droppedalert_brightness/AlertBrightness,animation_enable,test_mode/TestModeandHAS_NOT_CONTROLLABLE. Docsdocs/std_library/ww_indication.md, teststests/indication(mock servers with onlymode, and with every optional item). - โ
STD-29
ww_can_buson the stdlib idioms โ from simple bridges to bus debuggers.Canis one controller: six required items (capabilities(),configure(CanConfig)answering what was set,config(), the observablestatus, the countedrxstream, thetxcredit sink) and#[optional]set_mode(incl.ConfigandSleep),recover,tx_abort,tx_events(marker, measured queue time),bus_errors,protocol_status,bus_load,detect_timing,set_filters,set_layout,rx_buffer,tx_buffer(once or cyclic), transceiver (standby / silent / sleep, wiring faults), terminator,test_pins.CanGroup(interface[]: Can, enable / disable, optional clock source and frequency, performance) for controllers sharing clock, power and message RAM;CanTimeTriggered(TTCAN);CanXlbehind thexlfeature. Errors onCommonError+OutOfFilters,OutOfMemory,BusOff;defmtno longer pullsstd. Docsdocs/std_library/ww_can_bus.md, teststests/io_can(full and minimal node),tests/io_can_group(group, TTCAN, XL). - ๐งช STD-26
ww_logdefmt over reliable streams ยทv0.5โww_log_bare_metalrenamedww_log.LogDefmt { const DEFMT (encoding, build id); frames() }: a reliable stream whose unit is onedefmtframe, whole frames per item (up to 512 B), solostis the exact number of dropped messages and logs from before the host connects arrive by resuming the device's session.LogText { records(); rw level: LevelFilter }with boundedLogRecord,SeveritywithoutUser,LogErroronCommonError. Device side: new crateww_defmt_logger(global_logger!, lock-free ring with whole-frame commits, RTT tee that never blocks (whole frames or skipped and counted, whatever mode a probe set),pump()into the store, drops reported in place), ring stress-tested on the host with concurrent producers.tests/log_defmtdecodes withdefmt-decoderend to end;examples/defmt_log(host) andexamples_mcu/rp2'srp2_usb_log(USB and RTT at once, build id in flash).docs/std_library/ww_log.md. Tested 16 Oct 2026 on Portwright B153A (STM32G0B1, portwright API-10, with aPersistentRamRing): logs over USB and RTT at once,lostexact under a flood of 1000 (227 + 773), logs from before connecting and from before a forced HardFault; the non-blocking RTT tee with probe-rs attached (it sets the channel to blocking): floods of 1000 go on at ~62 us a line instead of ~620 us, RTT shows what fits. Known gap: frames dropped at the end of a burst are reported (lost) only with the next frame the device logs, so a quiet device shows the loss late.rp2_usb_lognot run (no Pico 2 probe on the mesh).ww login the CLI is a later item. - ๐งช STD-50
ww_indicationanimations in phase โ a device with a shared clock (STD-49 or a sync line) aligns its periodic animations to period boundaries of shared time (UTC, WSPR-style:t mod P), so devices showing the same animation are in phase with no epoch passed around, across PCs to NTP precision. A rule in the trait's docs, no API item (an explicit epoch was dropped: every server would have had to implement or omit it).docs/std_library/ww_indication.md#animations-in-phase-std-50; device side embedded_bedrockbedrock_ledwithbedrock_sync. Hardware check open: Portwright and rePort breathing in phase. - ๐งช STD-35 Slave data paths in
ww_i2candww_spiยทv0.5.xโ an#[optional(slave)]group inI2cand inSpi: opening the countedslave_events/slave_framesstream with a config starts slave mode (closing stops it) and reports every transfer (bytes both ways, register pointer or address, fill bytes, stretch time); the answers come from a register map the host fills and reads back (slave_map_write/slave_map_read, applied between two transfers) or from theslave_answerscredit sink, one answer per read or frame. A host that is too slow: I2CI2cSlaveUnderrun(Fill,Stretch { max }withReadWaitingsent at once,Nackwhile empty), SPI the idle byte or the last answer again, flaggedunderrun. Limits of clock stretching (SMBus 25 ms, masters without it) in the crate docs anddocs/std_library/ww_i2c.md#slave-mode.I2cMode::Slave,SpiRole::Slaveand theslavecapability flags are gone. API, snapshots, docs, the device-side engine (SRV-26,ww_bus_slave) and an end-to-end test of both slaves done:tests/io_i2c/tests/io_spidriveI2cSlave/SpiSlavebyte by byte as a simulated master (test-onlyslave_bus/slave_pumpmethods, a fake clock) through the real host and device event loops: register maps with page wrap and host updates between transactions, the answer queues, stretching to the deadline and past it,Nack,repeat_last, cleared answers and dropped events. Open: a check on real silicon, with the first user, the rePort (usb_io_fw IF-5, v1.0 launch, Roman 16 Oct 2026). - ๐งช STD-52
ww_i2cmaster errors and limits ยทv0.5โ what a good I2C master knows reaches the host (found by the rePort I2C driver):I2cError::Nack { op, at }(which operation, and the address or which data byte, counted asI2cRecord::nack_at),ClockStretchwithI2cMode::Master'sstretch_timeout(set and answered byi2c_configure, range in the capabilities),BusStuck { scl_low, sda_low }(no silent recovery:i2c_wiggle_clockon request, at the bus speed up to 100 kHz), and the limits inI2cCapabilities(speeds,max_ops,max_write_read_len,zero_length_write,stretch_timeoutrange; grouped by topic, sizes allu16). Transactions are stated as a repeated start before every operation (LinuxI2C_RDWR), not embedded-hal merging;i2c_configureanswers the highest SCL not above the request. Breaking on the wire and in Rust (nothing released or deployed, user 27 Oct 2026): callers in usb_io_fw and portwright adapt. Docsdocs/std_library/ww_i2c.md#transactions, tests inww_i2c(round trips) andtests/io_i2c. Open: the check on real silicon with the rePort driver (usb_io_fw IF-2, RP2350 DW_apb_i2c). - ๐งช STD-76
ww_i2c_hlembedded-hal I2C overww_i2cยทv0.5โ a stock embedded-hal 1.0 I2C driver, blocking or async, runs unchanged on the host against a remoteww_i2c::I2c(for a FUSB302 PD sink driven from the PC):I2cMastermerges contiguous same-direction operations (a repeated start before everyww_i2coperation, STD-52), so one embedded-hal transaction is one call and one round trip; refuses, never splits, what the device'sI2cCapabilitiesdon't take;Nack/Arbitration/Bus/Overrunmapped toErrorKind; request priority as a handle setting (urgent(), CLT-50). Docsdocs/std_library/ww_i2c_hl.md, teststests/io_i2c(tmp1x2async,eeprom24xblocking, unchanged). Open: the check on real silicon with the FUSB302 over the rePort's I2C. - ๐ง STD-6
ww_gpio_hlโ usable, some APIs are still missing. Blocking, async and promise flavors; the blocking pins implementembedded_hal::digital(OutputPin,StatefulOutputPin,InputPin), the async onesembedded_hal_async::digital::Waitwithout a race (stream opened, then level read, then edge awaited) and keep the edge's device time (last_edge_time), tested intests/io_gpio(docs/std_library/ww_gpio.md#embedded-hal-ww_gpio_hl). - ๐ STD-7 Interrupt left enabled in
ww_gpio_hlยทv0.5โ the falling edge helper documents that it leaves interrupts enabled; decide whether that is the intended fix or a bug. - ๐ง STD-8 Prototypes, to be completed later:
ww_i2c,ww_uart,ww_memory(wasww_ll: one word type per trait, optional watches, errors onCommonError, docs page), Known gaps areTODOs in their sources (e.g. SMBus and 7-bit addresses inww_i2c;ww_can_busis done in STD-29).ww_log(wasww_log_bare_metal) left for STD-26. - ๐ง STD-12
ww_dfufirmware update API โ traitsUpdateNode,BootControl,Inventory,Stage,StageBulk: each node (app, bootloader, recovery app) implements what it needs; A/B live, in place from a stored plan, in place live; step by step or bulk. Carries the octet records of the chunky protocol spec. End to end testtests/dfu. Guide with the eight update scenarios (2C-APP-STEPSwap Shuttle ..1L-UPD-BULKPit-stop Freight), each tested end to end over USB (simulated), WebSocket or UDP with reboots and power cuts, its exchange recorded as a golden transcript the docs include (docs/std_library/ww_dfu.md,tests/dfu_scenarios,just dfu-transcripts).StageBulk::planis a credit sink (API-28 credit-sinks). Every variable-size field is bounded (SW-19:MAX_PIECE_LEN,MAX_HEADER_LEN,MAX_CHUNKS_PAGE,MAX_PRODUCT_LEN), so every method has a known largest request and reply.Profile::AB(SlotSwitch::{Copy, Remap})/InPlace. Its numbers are typed (EVO-65): steps, chunks and erase blocks asIndex/CountofStep,Chunk,Block, byte offsets and sizes asIndex<Byte, ..>andBytes, ids and versions as newtypes, the anti-rollback floor aSecurityCounterapart from the releaseImageVersion. Next: a chunky implementation (chunky NET-1). - ๐ง STD-13 IO trait family ยท
v0.5โww_gpio,ww_uart(optionalUart::monitor),ww_i2c(+I2cWatch,I2cMonitor, 10-bit addresses),ww_spi(optionalSpi::monitor),ww_adc(STD-18),ww_pwm(STD-19),ww_onewire(STD-20),ww_timebase(STD-17),ww_logic_analyzer/ww_signal_generator(STD-21, STD-22);ww_sivalues and timestamps (STD-23): frequenciesHertz, baud ratesBaud. Family overview indocs/std_library/io_family.md; every crate filled in with full rustdoc, a mock-server test pairtests/io_<x>and a docs pagedocs/std_library/ww_<x>.md;examples_mcuGPIO and UART boards follow. A bus or bank is configured with oneconfigure(XConfig)answering what was actually set, the IO level inside it (io_level: Option<Volt>, capabilitiesio_levels/io_level_min/io_level_max). Every crate's error enum keeps only what is specific (Nack,NoPresence,NoSuchChannel, ...), the common errors come beside it (STD-16), methods list their variants with#[errors(..)](API-32). Streams with a configuration are counted stream functions (API-31:AdcStream::samples,LogicStream::data,Pin::event,PwmCaptureChannel::capture,Spi::monitor,I2cMonitor::records,Uart::monitor),Uart::rxandI2cWatch::changesare counted: positions, device losses and the time of the first unit in the event head; UART chunks end on line idle (UartConfig::idle_chars, one back-to-back burst each) and carry the time of their last byte when the device measures it (RxChunk::end). Clients take one?per call (CLT-24CallError),Unsizedenums read newer variants asUnknown(u32)(SW-47). Review round 1 (15 Oct 2026) done. Open:*_hlcrates are STD-14. - ๐ง STD-21
ww_logic_analyzerยทv0.5.xโLogicAnalyzer(triggered capture into RAM),LogicStream;Rawand per-channelTransitionsencodings (edges as aSeries<u32>), staged pattern triggers and protocol stages (UART byte, I2C address, SPI first byte). Skeleton written, docs pagedocs/std_library/ww_logic_analyzer.md; mock-server test pair still open (STD-13). - ๐ง STD-22
ww_signal_generatorยทv0.5.xโPatternGenerator(digital, replays analyzer captures through a credit sink),WaveformGenerator(DAC channels). Skeleton written, docs pagedocs/std_library/ww_signal_generator.md; mock-server test pair still open (STD-13). - โ STD-31 Observable
ww_gpiopin level ยทv0.5.xโproperty!(ro+observe level: Level)onPinat one of its reserved indices 4..=6, so a host sees input changes without opening theeventstream of every pin (slow inputs, a dashboard).Pinsits inBank::pin[](and banks usually in an array too): levels there are observable per element since API-63, but a pin's change is seen in an interrupt, so it is blocked on SRV-59 element-marks-from-tasks. - ๐ง STD-34
ww_recorderยทv0.5.xโ control a recorder over WireWeaver:Recorder(status, card facts, two-step prepare/format with a token, recordings, markers,sync, settings with the flush thresholds, counters, optionalrefresh_usb) andTrack[](info, enable, durability, compression, counters). For the SD card log store of repologring, usable by any recorder. API crate, snapshot and docs pagedocs/std_library/ww_recorder.mddone, the scaffold compiles; the first server is the logring's (rePort integration). - ๐ง STD-39
ww_blockยทv0.5.xโ a block device over WireWeaver (SD card, eMMC, flash):BlockDevicewithgeometry(block size and count, blocks per call, erase unit, erased value), freereadand device-sidecrc(CRC-32,ww_block::crc32),claim/releaseof a write lease that stops the card's own user,writewith a CRC anderaseunder it, and the optionalbulkgroup: thewrite_runscredit sink acknowledged on the countedwrittenstream, and the countedread_runsstream. Who may claim is the firmware's choice per link (CommonError::Refused). Tier T1 of logring's design (its PCLinkMedium, S2 prepare on the PC). API crate, snapshot, docs pagedocs/std_library/ww_block.mdand the round triptests/block_sddone, the scaffold compiles; the first server is the logring's.crc32/crc32_updateareww_crc'sCRC32_ISO_HDLC(TR-31), table size (none,table-256,table-slice16) picked byww_crc's cargo features. - ๐ง STD-40
ww_sdยทv0.5.xโ raw SD card access over WireWeaver:SdCardwithcapabilities,state, thedetectstream, rawregisters(CID, CSD, OCR, RCA, SCR, SD Status),reinitwith a per-stepInitReport, andcommand: one raw command with an optional data phase, answering response bytes,CardStatusbits, theOutcomeand timing. Commands areFree, need theww_blocklease, or areRestricted(CMD42, CMD27) unless the firmware builds withraw-sd-unrestricted(ww_sd::check_access). Tier T0 of logring's design. API crate, snapshot, docs pagedocs/std_library/ww_sd.mdand the round triptests/block_sddone, the scaffold compiles; a device needs a raw-command hook in its SD driver (not checked yet for embassy-stm32'sSdmmc). The docs page says how a device in SPI mode fills the answers ("In SPI mode", from rePort'ssd_protoengine); rePort's simulator servesSdCardon a simulated card in SPI mode (usb_io_fw IF-8). - ๐ก STD-10 Device state machine trait like CANopen.
- ๐ก STD-41 Frame splitters for byte streams โ a no_std, sans-IO splitter (bytes in, frames out with their
time and status: CRC good or bad, truncated, overrun), the same code on the device and the host. Kernels: idle
gap (today's
RxChunk), delimiter (\n,\r\n, any byte), fixed length, length field, sync byte + length + checksum, COBS, SLIP, Modbus RTU, NMEA; picked by the host when it opens the stream (Uart::frames(cfg)), no new firmware. Frames of a bounded length are what a batched stream can take, where a raw byte stream can't (no size bound); with API-51, each frame XOR'd with the last one of the same key (Modbus address, NMEA sentence, CAN ID). - ๐ก STD-44 SPI slave data-ready line โ a GPIO the slave asserts while an answer is queued (or the register map
changed), as most SPI slave protocols with a computed answer have (ESP32 handshake, nRF IRQ); the master reads only
when it is set, so the answer queue needs no polling. Part of
SpiSlaveConfig, the pin named by the board. - ๐ก STD-45 Live registers in a slave's register map โ address ranges of the I2C or SPI register map whose reads the host answers (I2C stretching meanwhile) or that change on read (clear-on-read status, FIFO data registers), so a chip with a few such registers can be emulated without moving it all to the answer queue.
- ๐ก STD-46 More I2C slave addressing โ a second address or an address mask (one emulator answering for several chips, a 24C16's block bits), general call, SMBus PEC and SMBALERT#/ARA. RP2350's controller has one address only, so this is per-device capability.
- ๐ง STD-47
ww_pin_diagpin tests ยทv0.5.xโPinDiag { const POINTS; set(point, PointState); read(point); release_all() }: raw access to a board's digital points (MCU pins, shift register and expander outputs) for bring-up, verification and production tests; the firmware keeps its board's rules and answersNotCapable,CommonError::InUseorRefused { rule }. Done: crate, docs pagedocs/std_library/ww_pin_diag.md, test pairtests/pin_diag(mock board: short, external pull-up, input-only pin, interlocked outputs, held pin), snapshot; the host tests and plan files are TOOL-15 (ww pins test). Missing: a device implementing it (rePort). - ๐ง STD-48
ww_internedstrings as ids ยทv0.5.xโInterned { Id(Index<InternedStr, UNib32>), Text(&str) }for names and reasons; ids resolved on the host from the firmware's ELF by build id. Done: the type,Display(#17for an unresolved id),ww pinsfinds the ELF by build id (ww_pin_probe::device::Names). Missing: an accessor fordefmt::Str's index (upstream,Table::get_str), reading the ids from the ELF's table with it. - ๐ STD-54
ww countersagainst the rePort โww countersfails against the B200A: the firmware sends no build id, and itscntformat is v0 while the tool reads v2 (report-i2c-master bench run, 27 Oct 2026). Either side may be behind (STD-25): bring the firmware'scntand build id up to what the tool needs, or make the tool say which format it got and what is missing instead of failing.
Server / device side (SRV)¶
- โ
SRV-26 Device-side engine for I2C and SPI slaves โ
ww_bus_slave, no_std, sans-IO, no alloc:I2cSlaveandSpiSlavedo what STD-35's API promises, so a firmware only wires its peripheral's interrupts to them. I2C: the register map (pointer bytes, auto-increment, wrap atlen, page wrap,read_only), host updates staged until the stop, the answer queue withFill,Stretch { max }(deadline,resume,ReadWaiting) andNack(acks_address),unsentfor a TX FIFO loaded ahead. SPI: queue answers (idle,repeat_last,underrun) andSpiRegistersframes (address,rwbit, dummy bytes before read data), the answer picked at the firstmiso()(FIFO preload,rewind); 8-bit words only. Events built asI2cSlaveEvent/SpiSlaveFrame.const fn newfor astatic; 58-100 instructions per byte on a Cortex-M3 (examples_mcu/mcu_qemubinqemu-bus-slave).docs/api/bus_slave.md, testsww_bus_slave/tests. First firmware user: usb_io_fw IF-5 (rePort, RP2350B).
Client / host side (CLT)¶
- โ
CLT-59 Crash call chain as
file:lineยทv0.5โ firmware built with-Zlocation-detail=nonehas nofile:linein its panic messages, soww reportdecodes the crash record's addresses with the ELF's DWARF (addr2line,gimli, pure Rust): a fault'spcexactly, itslrand the stack's return addresses at the call before them, inlined frames innermost first, demangled names, shortenedtrim-pathspaths; stack words that are no return address (Thumb bit,.text, after aBL/BLX, read from the ELF's code, the rule ofbedrock_crash::is_return_address) are dropped; the panic machinery is passed over to mark the panic site.ww_report::crash(Symbolizer,CrashAddresses,CrashFrames, serializable) for other host tools,docs/std_library/device_contract.md#crash-call-chain, tests against a real thumbv6m ELF (ww_stdlib/ww_report/tests/crash_frames.rs,just crash-fw-elf).
Tools (TOOL)¶
- โ
TOOL-28
ww board rework set/clearโ records a rework done on the bench throughBoardInfo::set_reworks(STD-98), on any device serving it anywhere in its API (a global trait attachment, API-20).ww board rework set 1,3,5/clear 1,3,5mark reworks applied or undone, all or none;--dry-runpassesprogram = false(nothing written, the would-be outcome printed).UnknownReworkis shown with the numbers the firmware knows, read fromREWORKS:unknown rework 7: this firmware knows 1-5, 8; update firmware first;ConflictandProductionRecordprint the device's own message.wire_weaver_clicmd::board. The first device is usb_io_fw PLAT-17. Tested on B200A 027 (3 Nov 2026, firmware 0.10.29,wwfeb97a85):set/clearwith and without--dry-run,set 9refused with the known numbers, nothing stored. - ๐งช TOOL-21
ww pins tuiยทv0.5.xโ every point live, laid out per connector of a board preset (docs/cli_reference.md#ww-pins-tui): level and what was set on each pad, keys to drive, toggle, pull, weak drive, read all, release, pause; every point released on quit, signals and errors. The preset is boardmap's board description read as it is ([[view.connector]],[aliases],[pins]roles, pads from its geometry JSON, nets joined across fitted solder bridges), no dependency on embedded_bedrock; a preset for ww alone lists nets per connector. Devices withww_gpiobanks and noPinDiagare shown through the banks (modes and pulls put back on release). Libraryww_pin_probe::board,live,bank; tests onMockBoardwith the NUCLEO-G0B1RE preset (wire_weaver_clicmd::pins_tui) and over banks end to end (tests/io_gpio). Hardware check open: the Nucleo G0B1RE once its firmware servesPinDiag. - ๐งช TOOL-29 Flashers check the board's reworks ยท
v0.5โww dfu rp flashandww dfu stm32 flashcheck with the chip in its ROM bootloader (user, 3 Nov 2026: a board with an unknown rework refuses to boot and sits there). Given the serial of a running device they reboot it there first (BootControl::reboot(Updater), an A/B device only, the titles of itsREWORKSkept for the question). In the ROM they read the new image's table, locator and build id from the file (ww_board_info::image, STD-101), the table of the image in flash (the board's name,--boardwhen no image names exactly one) and the bench record and allowance from the settings store (PICOBOOT read, DfuSe upload), and warn with the list when the image lacks a rework; only if the user agrees (or--allow-unknown-reworksnames exactly those numbers) the allowance is stored for the image'sImageIdthrough the ROM (the store's own erases and writes replayed, read back), otherwise a stored one is cleared. An image for another board, without a table or with an unreadable one, or without a build id, is asked about too (--yes); without a terminal every question is refused. An STM32 whose bootloader can't read its flash (readout protection) is written only with--yes. The check as a library:ww_report::rework_check(RomFlash,ImageReworks,scan_installed,read_board,verdict,set_allowance).docs/cli_reference.md#checking-the-boards-reworks. Tests:ww_reportrework_check::tests(the whole check on a chip in RAM),wire_weaver_clicmd::rework_check::tests.ww dfu flash(theww-chunkyplugin, a running app, no ROM at hand) compares with the app'sREWORKSand refuses a lacking image. Hardware check open: an RP2350 or STM32 board with a guarding firmware (usb_io_fw PLAT-18). - ๐ TOOL-8
wwinspect / read / write all GPIOs on any device ยทv0.5.x.
Evolution, versioning and compatibility (EVO)¶
- โ
EVO-60
ww_user_infocaps bounded on the wire ยทv0.5โ the ww_stdlib units survey's Q4:UserInfoCaps::name_maxandnotes_maxcarry their device-wide ceiling as a bound (NameMax/NotesMax,Fixed<units::Byte, One, u16, Range<0, 32>>/Range<0, 256>>) instead of a plainu16;ww_user_infoon a new wire line,w2.0. No device or host uses the format. - โ
EVO-62
ww_can_buson wirew2.0ยทv0.5โ the wire change of STD-114: newRangebounds (load and sample point 0-1000, element data 8-64 bytes, TTCAN matrix cycles and repeat 1-64, cycle offset and cycle 0-63, filter index 0-255),TriggerKind::RxCheck::filterfromu16to theUNib32ofRxFrame::filter,TtStatus::error_levelfromu8to the enumTtErrorLevel(2 bits),TtRole::Master::priorityfromu8toU3; every other change wraps the same number. The crate was never published, so its 0.1.0 snapshot was saved again in place onw2.0. - โ
EVO-61
ww_onewireon a new wire line ยทv0.5โ the wire change of STD-113:SearchState::last_discrepancynarrows from a plainu8toIndexFrom1<RomBit, u8, Range<1, 64>>, a bound added, soww_onewiremoves fromw1.0tow2.0. Every other change of STD-113 (ww_onewire'sFamilyCode,read_len,pin; all ofww_uart's) is a transparent wrapper or an unboundedFixed/Index/Count, same bytes, no wire bump.ww_onewire_0_1_0.ronis saved again in place (never published). No device or host uses the format. - โ
EVO-65
ww_dfutyped numbers on the wire ยทv0.5โww_dfuon a new wire line,w2.0(P2401 stdlib units survey): step indices and counts areIndex<Step, u32>/Count<Step, u32>, chunksIndex/Count<Chunk, u16>, erase blocksIndex<Block, u16>/Count<Block, u16>, byte offsets in a chunk or a planIndex<Byte, u32>, sizesBytes<u32>, all the same bytes. The breaks:NodeInfo'sproduct_id,app_versionandversion_floorbecomeapp: Option<ImageInfo>(ProductId,ImageVersion, and the image's newsecurity_counter) andsecurity_floor: SecurityCounter, as chunky checks the floor against the security counter, not the version;geometry_idisgeometry: GeometryId;LastResult::versionisOption<ImageVersion>;Session::resume_fromis split intoresume_stepandresume_byte;StageLimits::max_pieceisFixed<Byte, One, u16, Range<1, 1024>>(au16, bounded),in_flightFixed<Request, One, u8, Range<1, 255>>;ack_everyandplan_areaareNiched<.., Null<0>>. Testsww_dfu(bytes of every wrapper, the bounds, the niches),tests/dfu,tests/dfu_scenarios(transcripts again). No device or host uses the format. - โ
EVO-72 Capability limits bounded by their consts ยท
v0.5โ eachww_stdliblimit documented "at mostMAX_.." carries that const as itsRangebound ({ MAX_X as i64 }, read by the walker's const evaluator) in the smallest storage that holds it, refused past it on decode:ww_i2c(I2cCapabilities' four limits,I2cWatchCapabilitieswith the new unitWatch,I2cWatchConfig::len; wirew1.0->w2.0),ww_user_info(NameMaxin au8;w2.0->w3.0),ww_spi(SpiCapabilities::max_lenin au16;w2.0->w3.0),ww_dfu(max_piece, same bytes). Never published, so the 0.1.0 snapshots were saved again in place. No device or host uses the format (~/git/tpm/area/ops/in-use.md). - โ
EVO-57
ww_spityped numbers on the wire ยทv0.5โ the wire change of STD-56 forww_spi: word size, byte lengths, register offsets and counts move from a bare integer toexact_units::Fixed/Bytes/Index/Count(same bytes, Rust-only break besides the renames);SpiRwBit::SetIsRead/ClearIsRead'sbitgets aRange<0, 7>bound andio_levelmoves fromww_si::Quantity<Volt>toFixed<Volt, Milli, u16>(both narrow or change what is sent, a real wire break);ww_spiwas never published, so its 0.1.0 snapshot was saved again in place on a new wire line,w2.0. No device or host uses the format (~/git/tpm/area/ops/in-use.md). -
โ EVO-59
ww_logic_analyzertyped numbers on the wire ยทv0.5โ the stdlib units survey's per-crate change (prj/P2401-wireweaver/design/stdlib-units-survey.md): every channel number is anIndex<Channel, u8>(read_transitions,TriggerStage::UartByte::channel,I2cAddress::scl/sda,SpiFirstByte::cs/sck/data,ChannelCondition::channel,TransitionsChunk::channel,CaptureConfig::channels,StreamConfig::channels),RateLimit::channelsaCount<Channel, u8>,ChannelInfo::gpio_pinanOption<Index<Pin, u8>>; every sample position anIndex<Sample, u32>and every sample amount aCount<Sample, u32>(read_transitions'sfrom,CaptureStatus::Done::trigger_at/samples,SampleRange,RawChunk,TransitionsChunk::from/scanned_to/edges,CaptureConfig::samples/pre_trigger,CaptureActual::samples);LaCapabilities::memoryaBytes<u32>,RawLayout::widthaFixed<Bit, One, u8>,TriggerCapabilities::max_stages/max_conditionsaCount<Item, u8>,TriggerStage::SpiFirstByte::modeaww_spi::SpiModeinstead of a bare0..=3u8(reusingww_spi's enum, as the crate already reusesww_gpio::Levelandww_i2c::I2cAddress;ww_spi::SpiModenow derivesdefmt::Format, asTriggerStage's conditional derive needs). Every change a transparent wrapper or an enum of the sameww_repr, so the bytes are unchanged; wire linew2.0(shared with EVO-64) records the break, as the survey's decisions call for a new line, a CHANGELOG entry and an EVO item per break, bytes or not.ww_logic_analyzer0.1.0 (never published), itsapi_snapshotsrefreshed. No device or host uses the format. -
โ EVO-70 Old-format snapshots compare embedded definitions; pins refreshed by a tool ยท
v0.5โ wire_weaver's item: the checker andww api refresh-pinslive there. Itsnucleo_g0b1re_apifixture (a deployed firmware's API 0.4.0 with its old-format snapshots, on this repository's crates by path) and the fixture's tests live here, intests/nucleo_g0b1re_fixture: a compatible stdlib change passes it, a break fails it, andjust refresh-fixture-pins(called byjust save-snapshots) refreshes its pins.clock_pin_matches_wire_weavers_copyfails when itsww_timebase::Clockpin changes, which wire_weaver's copy of the 0.4.0 snapshot must then follow.
Testing (TEST)¶
- ๐ TEST-20 DFU transcript 1L-UPD-STEP races: after the power cut, the host annotation "the call fails (link
lost)" and the bootloader's "an update is under way" are recorded in either order, so
scenarios::pit_stop_shuttle_1l_upd_stepfails now and then (~2 in 10 alone, more often under the full paralleljust test). Seen before the TR-12 changes too. The recorder needs one order for events of the host and the simulated device that happen at the same time. Found 15 Oct 2026.
Dropped and superseded¶
- STD-9 Stubs, for later:
ww_spiโ superseded by STD-13:ww_spiis now a full IO-family trait (optionalSpi::monitor, typed numbers, STD-56), not a stub;ww_board_info,ww_firmware_info,ww_user_infoandww_uidmoved to STD-24 already. - STD-30
ww_gpioport access โ dropped (Roman, 20 Oct 2026),Bank::read_inputs/write_outputs,PinLeveland thesimultaneous_*capabilities removed beforeww_gpio0.1.0 was published.ww_gpiostays simple and low speed, one pin per call (IO family D9): many pins in one round trip are per-pin calls in one multi request (CLT-15,docs/std_library/ww_gpio.md#several-pins); several pins at one instant or with precise timing (bit-banged parallel buses, a strobe with its data lines) belong to the signal generator (STD-22) and the logic analyzer (STD-21). The extra methods only cost flash on every GPIO server.