Commit Graph
104 Commits
Author SHA1 Message Date
Sosthène Guédon 23f487dfb4 Fix heapless-byte cfg 2025-02-28 10:29:17 +01:00
Robin Krahl 74c2d4d894 Release v0.1.3 0.1.3 2024-10-17 23:46:37 +02:00
Sosthène Guédonandsosthene-nitrokey 348238e381 CommandView: precise lifetime of data 2023-11-24 09:53:54 +01:00
Robin KrahlandNicolas Stalder a2ee8a2a3f Release v0.1.2 0.1.2 2023-11-22 14:48:39 +01:00
Sosthène GuédonandRobin Krahl 57afb5355d Fix clippy warnings 2023-10-29 10:59:04 +01:00
Sosthène GuédonandRobin Krahl b06e5d9ec3 Fix semver breaks 2023-10-29 10:59:04 +01:00
Robin Krahl 33f0401216 Refactor CommandView::to_owned
This patch replaces Vec::from_slice with Vec::extend_from_slice in
CommandView::to_owned.  This reduces the stack usage on lpc55 to one
third (!), from ca. 23 kB to ca. 8 kB with S = 7609.
2023-10-25 15:17:41 +02:00
Sosthène GuédonandRobin Krahl 8b0d071cc6 Fix datasource is_empty calculation 2023-10-25 15:17:07 +02:00
Sosthène Guédonandsosthene-nitrokey 58152e8737 Fix clippy warnings 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 4a31b8a881 Update changelog 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey c22065b39d Add to_u16 method 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 507f8fa596 Document status values 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 4dff08c9a3 Rename UPPER to MAX 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 2ec3f87ce6 Make the Unkonwn status variant visibly not meant to be used 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 76b013aa74 Document #[doc(hidden)] strategy 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 3fc9f826e6 Make consts public 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey d7f6402ec9 Fix naming 2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 9415634d8c Support all status bytes
This adds all status bytes defined in ISO7816-4
It also adds an `Unknown` variant that is `#[doc(hidden)]` to prevent creation of statuses that exists as a variant.

It also has a `const` conversion function to allow matching against unsupported status bytes without being a semver hazard.
2023-09-22 11:31:28 +02:00
Sosthène Guédonandsosthene-nitrokey 24443bbada Fix review comments 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey d5da0525dc Fix clippy warnings 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 01964d3343 Rename do to data_object 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey e8035a38e9 Fix test compilation 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey fab1796b7d Fix write_all behaviour 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 10c894b033 Implement BitOr and BitAnd for Instruction 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 16aba0dc67 Add support for 0x010000 expected length
This would encode to `[00, 00]` and is not in range for u16
2023-09-22 11:27:49 +02:00