
package uk.co.wingpath.modbus;

/**
* This enum represents the four Modbus register types: Holding Register,
* Input Register, Coil, and Discrete Input.
*/
public enum ModbusType
{
    Holding ("Holding Register"),
    Input ("Input Register"),
    Coil ("Coil"),
    Discrete ("Discrete Input");

    private String name;

    private ModbusType (String name)
    {
        this.name = name;
    }

    /**
    * Gets the human-readable name of the type.
    * @return the name of the type.
    */
    public String getName ()
    {
        return name;
    }
}

