Enum libmodbus_rs::FunctionCode
[−]
[src]
pub enum FunctionCode { ReadCoils, ReadDiscreteInputs, ReadHoldingRegisters, ReadInputRegisters, WriteSingleCoil, WriteSingleRegister, ReadExceptionStatus, Diagnostic, WriteMultipleCoils, WriteMultipleRegisters, ReportSlaveId, MaskWriteRegister, WriteAndReadRegisters, }
Modbus function codes
Documentation source: https://en.wikipedia.org/wiki/Modbus#Supported_function_codes
Variants
ReadCoils
0x01 Read Coils
ReadDiscreteInputs
0x02 Read Discrete Inputs
ReadHoldingRegisters
0x03 Read Multiple Holding Registers
ReadInputRegisters
0x04 Read Input Registers
WriteSingleCoil
0x05 Write Single Coil
WriteSingleRegister
0x06 Write Single Holding Register
ReadExceptionStatus
0x07 Read Exception Status
Diagnostic
0x08 Diagnostic
WriteMultipleCoils
0x15 Write Multiple Coils
WriteMultipleRegisters
0x16 Write Multiple Holding Registers
ReportSlaveId
0x17 Report Slave ID
MaskWriteRegister
0x22 Mask Write Register
WriteAndReadRegisters
0x23 Read/Write Multiple Registers
Trait Implementations
impl Clone for FunctionCode
[src]
fn clone(&self) -> FunctionCode
[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 Copy for FunctionCode
[src]
impl PartialEq for FunctionCode
[src]
fn eq(&self, __arg_0: &FunctionCode) -> 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 !=
.