feat(log): add bounded diagnostic transport

This commit is contained in:
Onur Özkan committed 2026-08-09 22:04:06 +03:00
1 parent 632bf9f01b
commit 0a75860841
46 files changed
+2758 -60

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ version.workspace = true
workspace = true
[dependencies]
kaptan-log = { path = "../kaptan-log" }
kaptan-sensor = { path = "../kaptan-sensor" }
kaptan-i2c = { path = "../kaptan-i2c" }
kaptan-spi = { path = "../kaptan-spi" }
+3 -1
View File
@@ -1,7 +1,9 @@
//! ICM-42688-P operation errors.
use kaptan_log::KaptanError;
/// ICM-42688-P operation failure.
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Eq, PartialEq, KaptanError)]
pub enum Error<BusError> {
/// The selected SPI route rejected a transfer submission.
Start(BusError),
@@ -1,7 +1,9 @@
//! LIDAR-Lite v3 operation errors.
use kaptan_log::KaptanError;
/// LIDAR-Lite v3 operation failure.
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Eq, PartialEq, KaptanError)]
pub enum Error<BusError> {
/// The selected I²C route rejected a transaction submission.
Start(BusError),
@@ -22,7 +24,7 @@ pub enum Error<BusError> {
}
/// LIDAR-Lite v3 startup lifecycle failure.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, KaptanError)]
pub enum StartupError {
/// Startup completion was reported when the driver was not settling.
NotSettling,
+3 -1
View File
@@ -1,7 +1,9 @@
//! MPU6000 operation errors.
use kaptan_log::KaptanError;
/// MPU6000 operation failure.
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Eq, PartialEq, KaptanError)]
pub enum Error<BusError> {
/// The selected SPI route rejected a transfer submission.
Start(BusError),