Module: Ansible::KNX::DPT2

Includes:
Canonical_1bit
Defined in:
lib/ansible/knx/dpt/dpt2.rb

Overview

DPT2: 2-bit control value

Defined Under Namespace

Classes: DPT2_Frame

Constant Summary collapse

Basetype =

DPT basetype info hash

{
    :bitlength => 2,
    :valuetype => :composite,
    :desc => "1-bit value with priority"
}
Subtypes =

DPT subtypes info hash

{
    # 2.001 switch control
    "001" => { :use => "G",
        :name => "DPT_Switch_Control", 
        :desc => "switch with priority", 
        :enc => { 0 => "Off", 1 => "On" }
    },
    # 2.002 boolean control
    "002" => { :use => "G",
        :name => "DPT_Bool_Control", 
        :desc => "boolean with priority", 
        :enc => { 0 => "false", 1 => "true" }
    },
    # 2.003 enable control
    "003" => {  :use => "FB",
        :name => "DPT_Emable_Control", 
        :desc => "enable with priority", 
        :enc => { 0 => "Disabled", 1 => "Enabled" }
    },

    # 2.004 ramp control
    "004" => { :use => "FB",
        :name => "DPT_Ramp_Control", 
        :desc => "ramp with priority", 
        :enc => { 0 => "No ramp", 1 => "Ramp" }
    },

    # 2.005 alarm control
    "005" => { :use => "FB",
        :name => "DPT_Alarm_Control", 
        :desc => "alarm with priority", 
        :enc => { 0 => "No alarm", 1 => "Alarm" }
    },

    # 2.006 binary value control
    "006" => { :use => "FB",
        :name => "DPT_BinaryValue_Control", 
        :desc => "binary value with priority", 
        :enc => { 0 => "Off", 1 => "On" }
    },

    # 2.007 step control
    "007" => { :use => "FB",
        :name => "DPT_Step_Control", 
        :desc => "step with priority", 
        :enc => { 0 => "Off", 1 => "On" }
    },

    # 2.008 Direction1 control
    "008" => { :use => "FB",
        :name => "DPT_Direction1_Control", 
        :desc => "direction 1 with priority", 
        :enc => { 0 => "Off", 1 => "On" }
    },
   
    # 2.009 Direction2 control
    "009" => { :use => "FB",
        :name => "DPT_Direction2_Control", 
        :desc => "direction 2 with priority", 
        :enc => { 0 => "Off", 1 => "On" }
    },
    
    # 2.010 start control
    "001" => { :use => "FB",
        :name => "DPT_Start_Control", 
        :desc => "start with priority", 
        :enc => { 0..1 => "No control", 2 => "Off", 3 => "On" }
    },

    # 2.011 state control
    "001" => { :use => "FB",
        :name => "DPT_Switch_Control", :desc => "switch", 
        :enc => { 0..1 => "No control", 2 => "Off", 3 => "On" }
    },

    # 2.012 invert control
    "001" => { :use => "FB",
        :name => "DPT_Switch_Control", :desc => "switch", 
        :enc => { 0..1 => "No control", 2 => "Off", 3 => "On" }
    }
}

Method Summary

Methods included from Canonical_1bit

#as_canonical_value, #to_protocol_value