From e186af902d599320610dd1e8829dc0dbbb2ab4b1 Mon Sep 17 00:00:00 2001 From: Nia Espera Date: Thu, 2 Mar 2023 23:05:07 +0100 Subject: [PATCH] more docs --- lvgl/src/display.rs | 1 + lvgl/src/functions.rs | 1 + lvgl/src/support.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/lvgl/src/display.rs b/lvgl/src/display.rs index f559f975..5175233e 100644 --- a/lvgl/src/display.rs +++ b/lvgl/src/display.rs @@ -7,6 +7,7 @@ use core::mem::MaybeUninit; use core::ptr::NonNull; use core::{ptr, result}; +/// Error in interacting with a `Display`. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub enum DisplayError { NotAvailable, diff --git a/lvgl/src/functions.rs b/lvgl/src/functions.rs index ffc73a8f..3450f735 100644 --- a/lvgl/src/functions.rs +++ b/lvgl/src/functions.rs @@ -5,6 +5,7 @@ use core::ptr::NonNull; use core::time::Duration; use core::{ptr, result}; +/// Internal LVGL error. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub enum CoreError { ResourceNotAvailable, diff --git a/lvgl/src/support.rs b/lvgl/src/support.rs index f556b3ac..c3d373ac 100644 --- a/lvgl/src/support.rs +++ b/lvgl/src/support.rs @@ -8,6 +8,7 @@ use embedded_graphics::pixelcolor::{Rgb565, Rgb888}; pub type LvResult = Result; +/// Generic LVGL error. All other errors can be coerced into it. #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] pub enum LvError { InvalidReference, @@ -253,6 +254,7 @@ impl From for u8 { } } +/// Boolean for determining whether animations are enabled. pub enum Animation { ON, OFF,