autd3-rs-core 0.9.0

Core types and link abstraction shared across the AUTD3 phased-array sdk crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[repr(u8)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Default)]
pub enum GpioIn {
    #[default]
    I0 = 0,
    I1 = 1,
    I2 = 2,
    I3 = 3,
}

impl GpioIn {
    #[must_use]
    pub const fn as_u8(self) -> u8 {
        self as u8
    }
}