Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nia-e committed Mar 2, 2023
1 parent aab737a commit e186af9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lvgl/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lvgl/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions lvgl/src/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use embedded_graphics::pixelcolor::{Rgb565, Rgb888};

pub type LvResult<T> = Result<T, LvError>;

/// Generic LVGL error. All other errors can be coerced into it.
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
pub enum LvError {
InvalidReference,
Expand Down Expand Up @@ -253,6 +254,7 @@ impl From<Align> for u8 {
}
}

/// Boolean for determining whether animations are enabled.
pub enum Animation {
ON,
OFF,
Expand Down

0 comments on commit e186af9

Please sign in to comment.