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