lp50xx_async/ll/mod.rs
1#[cfg(test)]
2mod test;
3
4pub mod i2c;
5
6device_driver::create_device!(
7 device_name: Device,
8 manifest: "src/ll/ll.yaml"
9);
10
11#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
12#[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
13pub enum DeviceError<T> {
14 Interface(T),
15 BufferTooSmall,
16}
17
18impl<T> From<T> for DeviceError<T> {
19 fn from(value: T) -> Self {
20 DeviceError::Interface(value)
21 }
22}