firmware for my Touchscreen E-Paper Input Module for Framework Laptop 16
0

Configure Feed

Select the types of activity you want to include in your feed.

1#[repr(usize)] 2#[derive(Copy, Clone, Debug, Eq, PartialEq)] 3#[cfg_attr(feature = "defmt", derive(defmt::Format))] 4pub enum CsSyscall { 5 Acquire = 0, 6 Release = 1, 7} 8 9impl TryFrom<usize> for CsSyscall { 10 type Error = (); 11 12 fn try_from(value: usize) -> Result<Self, Self::Error> { 13 match value { 14 x if x == CsSyscall::Acquire as usize => Ok(CsSyscall::Acquire), 15 x if x == CsSyscall::Release as usize => Ok(CsSyscall::Release), 16 _ => Err(()), 17 } 18 } 19}