Skip to main content

cr1140_hal/
lib.rs

1// SPDX-License-Identifier: GPL-3.0-only
2//! Hardware abstraction layer for the ifm CR1140/CR1141 (aarch64, Yocto Linux).
3//!
4//! Wraps stock Linux ABIs the device exposes: fbdev (display), evdev (buttons),
5//! SocketCAN (CAN), and sysfs (LEDs/backlight/temperature).
6//!
7//! Most fallible calls return [`HalResult`], so callers can match on the
8//! [`HalError`] cause (missing device, unsupported format, out-of-range value)
9//! rather than string-matching an [`std::io::Error`].
10pub mod error;
11pub use error::{HalError, HalResult};
12
13pub mod can;
14pub mod display;
15pub mod input;
16pub mod sys;
17
18pub mod prelude;