[][src]Enum libmodbus::FunctionCode

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]

impl Copy for FunctionCode[src]

impl Eq for FunctionCode[src]

impl PartialEq<FunctionCode> for FunctionCode[src]

impl StructuralEq for FunctionCode[src]

impl StructuralPartialEq for FunctionCode[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,