Skip to content

Commit

Permalink
Merge pull request #17 from omelia-iliffe/device
Browse files Browse the repository at this point in the history
add Device/Peripheral api
  • Loading branch information
de-vri-es authored Oct 12, 2024
2 parents fc6054a + 56ed4c9 commit 0a272c5
Show file tree
Hide file tree
Showing 15 changed files with 1,100 additions and 248 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
- [major][change] Changed errors types to be generic over `Transport::Error`
- [major][change] Moved `crate::serial2` re-export to `crate::transport::serial2::serial2`.
- [minor][change] Changed `Bus::read_status_response_deadline()` to `Bus::read_status_response_timeout()`, which takes a `Duration` instead of an `Instant`.
- [major][add] Added `Packet` trait for shared functionality between `InstructionPacket` and `StatusPacket`.
- [major][add] Added `messaging::Messenger` struct to handle low level communication.
- [major][change] Changed `Bus` to use `Messenger` for low level communication.
- [major][add] Added `MockSerialPort` and integration tests between `Bus` and `Device`.
- [major][add] Added `Instruction` struct and `Instructions` enum for parsing received `InstructionPacket`s into.
- [major][add] Added `ExpectedCount::Min` to check for a minimum number of parameters in a packet.

# Version 0.9.1 - 2024-07-31
- [minor][add] Add missing `Error` impl for `InitializeError`.
Expand Down
160 changes: 157 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ serial2 = { version = "0.2.24", optional = true }
[dev-dependencies]
assert2 = "0.3.3"
env_logger = "0.11.5"
test-log = "0.2.16"
log = "0.4.8"

[features]
default = ["std", "serial2"]
Expand Down
Loading

0 comments on commit 0a272c5

Please sign in to comment.