ifw-fcf  5.0.0-pre2
Public Member Functions | List of all members
clib.lamp_setup.LampSetup Class Reference

LampSetup provides all methods to build the payload of an Lamp device. More...

Public Member Functions

def __init__ (self, fcfmal, device)
 
def switch_on (self)
 Set lamp ON flag. More...
 
def switch_on_with_intensity (self, intensity)
 Set lamp ON flag with intensity control. More...
 
def switch_on_with_timer (self, timer, intensity=100)
 Set lamp ON with timer. More...
 
def switch_off (self)
 Set lamp OFF flag. More...
 
def set_dictionary (self, dict)
 Set parameters according to a dictionary. More...
 
def get_buffer (self)
 Get lamp payload data (union) More...
 

Detailed Description

LampSetup provides all methods to build the payload of an Lamp device.

Constructor & Destructor Documentation

◆ __init__()

def clib.lamp_setup.LampSetup.__init__ (   self,
  fcfmal,
  device 
)

Member Function Documentation

◆ get_buffer()

def clib.lamp_setup.LampSetup.get_buffer (   self)

Get lamp payload data (union)

◆ set_dictionary()

def clib.lamp_setup.LampSetup.set_dictionary (   self,
  dict 
)

Set parameters according to a dictionary.

◆ switch_off()

def clib.lamp_setup.LampSetup.switch_off (   self)

Set lamp OFF flag.

◆ switch_on()

def clib.lamp_setup.LampSetup.switch_on (   self)

Set lamp ON flag.

◆ switch_on_with_intensity()

def clib.lamp_setup.LampSetup.switch_on_with_intensity (   self,
  intensity 
)

Set lamp ON flag with intensity control.

◆ switch_on_with_timer()

def clib.lamp_setup.LampSetup.switch_on_with_timer (   self,
  timer,
  intensity = 100 
)

Set lamp ON with timer.


The documentation for this class was generated from the following file: