Enum ur20::ModuleType
[−]
[src]
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_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
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 ModbusParameterRegisterCount for ModuleType
[src]
fn param_register_count(&self) -> u16
[src]
Total number of Modbus registers of module parameters.
impl Debug for ModuleType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ModuleType
[src]
fn clone(&self) -> ModuleType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ModuleType
[src]
fn eq(&self, __arg_0: &ModuleType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for ModuleType
[src]
impl Hash for ModuleType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for ModuleType
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl Into<ModuleCategory> for ModuleType
[src]
fn into(self) -> ModuleCategory
[src]
Performs the conversion.