pub enum Kind {
Akp153,
Akp153E,
Akp153R,
Akp815,
Akp03,
Akp03E,
Akp03R,
Akp03RRev2,
}Expand description
Enum describing kinds of Ajazz devices
Variants§
Akp153
Ajazz AKP153
Akp153E
Ajazz AKP153E
Akp153R
Ajazz AKP153R
Akp815
Ajazz AKP815
Akp03
Ajazz AKP03
Akp03E
Ajazz AKP03E
Akp03R
Ajazz AKP03R
Akp03RRev2
Ajazz AKP03R rev 2
Implementations§
Source§impl Kind
impl Kind
Sourcepub const fn from_vid_pid(vid: u16, pid: u16) -> Option<Kind>
pub const fn from_vid_pid(vid: u16, pid: u16) -> Option<Kind>
Creates Kind variant from Vendor ID and Product ID
Sourcepub const fn product_id(&self) -> u16
pub const fn product_id(&self) -> u16
Retrieves Product ID of the device
Sourcepub const fn display_key_count(&self) -> u8
pub const fn display_key_count(&self) -> u8
Amount of display keys the device has
Sourcepub const fn column_count(&self) -> u8
pub const fn column_count(&self) -> u8
Amount of button columns the device has
Sourcepub const fn encoder_count(&self) -> u8
pub const fn encoder_count(&self) -> u8
Amount of encoders/knobs the device has
Sourcepub const fn lcd_strip_size(&self) -> Option<(usize, usize)>
pub const fn lcd_strip_size(&self) -> Option<(usize, usize)>
Size of the LCD strip on the device
Sourcepub const fn boot_logo_size(&self) -> Option<(usize, usize)>
pub const fn boot_logo_size(&self) -> Option<(usize, usize)>
Size of the boot logo on the device
Sourcepub const fn key_layout(&self) -> (u8, u8)
pub const fn key_layout(&self) -> (u8, u8)
Key layout of the device kind as (rows, columns)
Sourcepub const fn logo_image_format(&self) -> ImageFormat
pub const fn logo_image_format(&self) -> ImageFormat
Image format used by the device kind
Sourcepub const fn key_image_format(&self) -> ImageFormat
pub const fn key_image_format(&self) -> ImageFormat
Image format used by the device kind
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more