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

0x01 Read Coils

0x02 Read Discrete Inputs

0x03 Read Multiple Holding Registers

0x04 Read Input Registers

0x05 Write Single Coil

0x06 Write Single Holding Register

0x07 Read Exception Status

0x08 Diagnostic

0x15 Write Multiple Coils

0x16 Write Multiple Holding Registers

0x17 Report Slave ID

0x22 Mask Write Register

0x23 Read/Write Multiple Registers

Trait Implementations

impl Clone for FunctionCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FunctionCode
[src]

impl PartialEq for FunctionCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for FunctionCode
[src]