[][src]Enum ur20::ModuleType

pub enum ModuleType {
    UR20_4DI_P,
    UR20_4DI_P_3W,
    UR20_8DI_P_2W,
    UR20_8DI_P_3W,
    UR20_8DI_P_3W_HD,
    UR20_16DI_P,
    UR20_16DI_P_PLC_INT,
    UR20_2DI_P_TS,
    UR20_4DI_P_TS,
    UR20_4DI_N,
    UR20_8DI_N_3W,
    UR20_16DI_N,
    UR20_16DI_N_PLC_INT,
    UR20_4DI_2W_230V_AC,
    UR20_4DO_P,
    UR20_4DO_P_2A,
    UR20_4DO_PN_2A,
    UR20_8DO_P,
    UR20_8DO_P_2W_HD,
    UR20_16DO_P,
    UR20_16DO_P_PLC_INT,
    UR20_4DO_N,
    UR20_4DO_N_2A,
    UR20_8DO_N,
    UR20_16DO_N,
    UR20_16DO_N_PLC_INT,
    UR20_4RO_SSR_255,
    UR20_4RO_CO_255,
    UR20_2PWM_PN_0_5A,
    UR20_2PWM_PN_2A,
    UR20_4AI_UI_16,
    UR20_4AI_UI_16_DIAG,
    UR20_4AI_UI_DIF_16_DIAG,
    UR20_4AI_UI_16_HD,
    UR20_4AI_UI_16_DIAG_HD,
    UR20_4AI_UI_12,
    UR20_8AI_I_16_HD,
    UR20_8AI_I_16_DIAG_HD,
    UR20_8AI_I_PLC_INT,
    UR20_4AI_R_HS_16_DIAG,
    UR20_2AI_SG_24_DIAG,
    UR20_3EM_230V_AC,
    UR20_4AO_UI_16,
    UR20_4AO_UI_16_M,
    UR20_4AO_UI_16_DIAG,
    UR20_4AO_UI_16_M_DIAG,
    UR20_4AO_UI_16_HD,
    UR20_4AO_UI_16_DIAG_HD,
    UR20_1CNT_100_1DO,
    UR20_2CNT_100,
    UR20_1CNT_500,
    UR20_2FCNT_100,
    UR20_1SSI,
    UR20_1COM_232_485_422,
    UR20_1COM_SAI_PRO,
    UR20_4COM_IO_LINK,
    UR20_4AI_RTD_DIAG,
    UR20_4AI_TC_DIAG,
    UR20_PF_I,
    UR20_PF_O,
    UR20_PF_O_1DI_SIL,
    UR20_PF_O_2DI_SIL,
    UR20_PF_O_2DI_DELAY_SIL,
}

Describes the concrete module type.

Variants

UR20_4DI_P
UR20_4DI_P_3W
UR20_8DI_P_2W
UR20_8DI_P_3W
UR20_8DI_P_3W_HD
UR20_16DI_P
UR20_16DI_P_PLC_INT
UR20_2DI_P_TS
UR20_4DI_P_TS
UR20_4DI_N
UR20_8DI_N_3W
UR20_16DI_N
UR20_16DI_N_PLC_INT
UR20_4DI_2W_230V_AC
UR20_4DO_P
UR20_4DO_P_2A
UR20_4DO_PN_2A
UR20_8DO_P
UR20_8DO_P_2W_HD
UR20_16DO_P
UR20_16DO_P_PLC_INT
UR20_4DO_N
UR20_4DO_N_2A
UR20_8DO_N
UR20_16DO_N
UR20_16DO_N_PLC_INT
UR20_4RO_SSR_255
UR20_4RO_CO_255
UR20_2PWM_PN_0_5A
UR20_2PWM_PN_2A
UR20_4AI_UI_16
UR20_4AI_UI_16_DIAG
UR20_4AI_UI_DIF_16_DIAG
UR20_4AI_UI_16_HD
UR20_4AI_UI_16_DIAG_HD
UR20_4AI_UI_12
UR20_8AI_I_16_HD
UR20_8AI_I_16_DIAG_HD
UR20_8AI_I_PLC_INT
UR20_4AI_R_HS_16_DIAG
UR20_2AI_SG_24_DIAG
UR20_3EM_230V_AC
UR20_4AO_UI_16
UR20_4AO_UI_16_M
UR20_4AO_UI_16_DIAG
UR20_4AO_UI_16_M_DIAG
UR20_4AO_UI_16_HD
UR20_4AO_UI_16_DIAG_HD
UR20_1CNT_100_1DO
UR20_2CNT_100
UR20_1CNT_500
UR20_2FCNT_100
UR20_1SSI
UR20_1COM_232_485_422
UR20_1COM_SAI_PRO
UR20_4AI_RTD_DIAG
UR20_4AI_TC_DIAG
UR20_PF_I
UR20_PF_O
UR20_PF_O_1DI_SIL
UR20_PF_O_2DI_SIL
UR20_PF_O_2DI_DELAY_SIL

Methods

impl ModuleType[src]

pub fn try_from_u32(id: u32) -> Result<Self, Error>[src]

pub fn channel_count(&self) -> usize[src]

Returns the number of channels for a specific module type.

Trait Implementations

impl Clone for ModuleType[src]

impl Debug for ModuleType[src]

impl Eq for ModuleType[src]

impl FromStr for ModuleType[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for ModuleType[src]

impl Into<ModuleCategory> for ModuleType[src]

impl ModbusParameterRegisterCount for ModuleType[src]

impl PartialEq<ModuleType> for ModuleType[src]

impl StructuralEq for ModuleType[src]

impl StructuralPartialEq for ModuleType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.