Allen Hill
ae539e27f6
Fix some overflow behavior when reading input msgs
2026-07-23 12:41:00 -07:00
Allen Hill
a99fe56aae
Fix intermittent, early boot short start bit errors
2026-07-21 13:22:19 -07:00
Allen Hill
909915730b
Not all error conditions print a message
2026-07-21 12:52:25 -07:00
Allen Hill
5bbbb6c011
Party should be ~private
2026-07-21 12:51:49 -07:00
Allen Hill
8950bd6917
Make b3 const
2026-07-21 12:51:18 -07:00
Allen Hill
56936aed10
Switch to using references where possible
2026-07-17 14:31:54 -07:00
Allen Hill
5208e083f3
Redesign (simplify) top-level avclan interface to use expected/nullable unique_ptr
...
- Peripheral::read/send now return `expected<unique_ptr<Frame>, Error>`
for a unified success/error interface.
- Peripheral::route returns `expected<unique_ptr<Frame>, Error>` to
distinguish intent: (intentional) non-response vs unable to respond
- Other functions with optional message semantics (handle,poll,react)
return a unique_ptr whose ownership-state indicates response intent
(i.e. send new message)
Bundled necessary changes:
- Switch Frame allocation from global to local (enabled via member
function new/delete)
- Add new header-library tl::expected to shim avr-libstdcpp
Unrelated: Defensive `continue` added after `route`, to reduce Bus
activity check latency
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-17 14:47:47 -07:00
Allen Hill
200a225add
Unify frame metadata setting (addrs and owning_device)
2026-07-16 13:35:25 -07:00
Allen Hill
568c2af9e6
Only check tracked files and don't print on empty lint
2026-07-16 13:35:06 -07:00
Allen Hill
681450f4ad
Update READMEs
2026-07-08 14:37:17 -07:00
Allen Hill
82884c1305
Resolve some const/static-able warnings
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 14:16:38 -07:00
Allen Hill
b194a6df2c
Improve/expand C phy docs
2026-07-08 13:51:38 -07:00
Allen Hill
2ed6066609
Fix miscellaneous bugs identified by Claude
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 13:15:59 -07:00
Allen Hill
cd11501074
Minor reorganization
2026-07-08 09:42:02 -07:00
Allen Hill
52b4b625fb
Move Error::Parse enum into avclan.h
2026-07-08 09:41:25 -07:00
Allen Hill
1ac9a14811
Remove unused function
2026-07-08 09:37:50 -07:00
Allen Hill
e50bde197d
Complete the switch to jnk0le uart lib
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-07 12:49:01 -07:00
Allen Hill
1d953adaf2
Merge branch 'gen2' into o/jnk0le-uart-lib
2026-07-07 12:48:18 -07:00
Allen Hill
f6a0d2d9dc
Make sure tshark is installed in container
2026-07-06 20:44:09 -07:00
Allen Hill
642c5ca59e
fixup lua tables
2026-07-06 20:43:51 -07:00
Allen Hill
103b595abb
Consistently mark frame owners
2026-07-06 20:31:22 -07:00
Allen Hill
0664c1e7bd
Fix broadcasting messages and revert Playback_Status reports to broadcast
2026-07-06 20:28:59 -07:00
Allen Hill
9fd8c5636e
Finalize C <=> C++ interface
2026-07-06 19:39:49 -07:00
Allen Hill
7ceed80128
Expose Bus mute via Peripheral
2026-07-06 17:13:05 -07:00
Allen Hill
b538e07577
Establish the Lua dissector action/device/etc tables as authoritative
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-06 16:53:13 -07:00
Allen Hill
e92d61adca
Remove redundant conditional
2026-07-06 16:26:28 -07:00
Allen Hill
a6bcecc34f
fixup ee620d4
2026-07-06 16:26:01 -07:00
Allen Hill
554fca0582
Shift Device/Action enums to avclan.h
2026-07-06 15:50:09 -07:00
Allen Hill
25e425a601
Remove unused header
2026-07-06 14:42:30 -07:00
Allen Hill
1c0124edcc
Shift avclan_bit_t to avclan.h
2026-07-06 13:55:13 -07:00
Allen Hill
a0c6601cda
Unify Send/Read error enums
2026-07-06 13:36:53 -07:00
Allen Hill
82cbb126a9
Fix (centralize) setting of controller/peripheral addrs
2026-07-06 13:05:58 -07:00
Allen Hill
ce8e1dde92
fixup fixup bus send/read parity & acking
2026-07-06 12:00:58 -07:00
Allen Hill
ee620d4e77
Fix Initial_Report_Response message (double leading zeros)
2026-07-06 11:52:52 -07:00
Allen Hill
04c492271c
fixup error switch flow
2026-07-06 11:31:36 -07:00
Allen Hill
30ad2dc67f
fixup bus send/read parity & acking
2026-07-06 11:31:17 -07:00
Allen Hill
6e4812e6b8
fixup dev refs
2026-07-06 11:29:49 -07:00
Allen Hill
1fdd296784
Ref shouldACK in lambda to only set once
2026-07-05 19:40:48 -07:00
Allen Hill
1e416a3457
Misc clang-tidy/comment tweaks
2026-07-05 19:40:17 -07:00
Allen Hill
2400fac7df
[fixup] add controller field getter
2026-07-05 19:38:15 -07:00
Allen Hill
950e1e8094
Shift some bus functions definitions out of the header
2026-07-05 19:37:40 -07:00
Allen Hill
e878a61313
Port Frame object to C++
2026-07-05 19:35:58 -07:00
Allen Hill
66bbf8639e
Parameterise Peripheral by its Devices and add CDChanger as one
2026-06-27 10:29:34 -07:00
Allen Hill
d98cc8acad
Add C++ Bus class for the physical layer interface
2026-06-25 20:40:10 -07:00
Allen Hill
67ba8e774c
fix some clang-tidy warnings
2026-06-25 18:17:09 -07:00
Allen Hill
1877bb0658
Add C++ Peripheral class
2026-06-25 18:16:38 -07:00
Allen Hill
02b370dd06
Port Queue to C++
...
Some knock-on changes to keep a simple design:
- Bake the data array into AVCLAN_frame_t
- Bundle the response/reaction with AVCLAN_frame_t
- (Needed to maintain correct/simple ownership semantics with the
cache and outgoing/incoming queues)
- Switch status frame update ticks to use a regular
cache-originating/owned frame
2026-06-25 14:28:19 -07:00
Allen Hill
77ff4652fd
Prep for C++ port
2026-06-23 18:29:49 -07:00
Allen Hill
12ddd3d3c0
use out/build for preset build directory
2026-06-23 17:51:47 -07:00
Allen Hill
c895034bb2
Update copyright headers to use SPDX id's
2026-06-23 17:51:29 -07:00