linuxcnc-hal 0.3.0

A safe, high level interface to LinuxCNC's HAL submodule
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use linuxcnc_hal_sys::{
    hal_pin_dir_t_HAL_IN as HAL_IN, hal_pin_dir_t_HAL_IO as HAL_IO,
    hal_pin_dir_t_HAL_OUT as HAL_OUT,
};

/// Pin direction
#[derive(Copy, Clone, Debug)]
pub enum PinDirection {
    /// The pin is an input to the component
    In = HAL_IN as isize,

    /// The pin is an output from the component
    Out = HAL_OUT as isize,

    /// Bidirectional pin - can be both read and written
    Bidirectional = HAL_IO as isize,
}