ifw-fcf  5.0.0-pre2
Public Member Functions | Public Attributes | List of all members
iodev.iodev.DevsimIodev Class Reference

Device Simulator class for the Standard Iodev Device. More...

Inheritance diagram for iodev.iodev.DevsimIodev:

Public Member Functions

def __init__ (self)
 Initialise the Iodev Device simulator class; set the members. More...
 
def initialise (self)
 Initialise various parameters of the simulated device. More...
 
def set_error_attribs (self, error_code)
 Set the "stat.nErrorCode"/"stat.sErrorText" node values. More...
 
def set_rpc_error_attribs (self, rpc_error_code)
 Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values. More...
 
def sim_thr_user (self)
 Simulation Thread managing the iodev status. More...
 
def data_change_handler (self, node, value, data)
 Invoked when subscribed "ctrl." and "stat." nodes change value. More...
 
def RPC_Init (self, parent)
 Initiate the initialisation procedure. More...
 
def RPC_Reset (self, parent)
 Reset the Iodev Device (bring it to NotOp/NotReady). More...
 
def RPC_Enable (self, parent)
 Execute SM Enable operation. More...
 
def RPC_Disable (self, parent)
 Execute SM Disable operation. More...
 
def RPC_SetOutputs (self, parent)
 Execute SM Set Outputs operation. More...
 

Public Attributes

 initialised
 
 sim_init_time
 

Detailed Description

Device Simulator class for the Standard Iodev Device.

Constructor & Destructor Documentation

◆ __init__()

def iodev.iodev.DevsimIodev.__init__ (   self)

Initialise the Iodev Device simulator class; set the members.

Member Function Documentation

◆ data_change_handler()

def iodev.iodev.DevsimIodev.data_change_handler (   self,
  node,
  value,
  data 
)

Invoked when subscribed "ctrl." and "stat." nodes change value.

◆ initialise()

def iodev.iodev.DevsimIodev.initialise (   self)

Initialise various parameters of the simulated device.

◆ RPC_Disable()

def iodev.iodev.DevsimIodev.RPC_Disable (   self,
  parent 
)

Execute SM Disable operation.

◆ RPC_Enable()

def iodev.iodev.DevsimIodev.RPC_Enable (   self,
  parent 
)

Execute SM Enable operation.

◆ RPC_Init()

def iodev.iodev.DevsimIodev.RPC_Init (   self,
  parent 
)

Initiate the initialisation procedure.

◆ RPC_Reset()

def iodev.iodev.DevsimIodev.RPC_Reset (   self,
  parent 
)

Reset the Iodev Device (bring it to NotOp/NotReady).

◆ RPC_SetOutputs()

def iodev.iodev.DevsimIodev.RPC_SetOutputs (   self,
  parent 
)

Execute SM Set Outputs operation.

◆ set_error_attribs()

def iodev.iodev.DevsimIodev.set_error_attribs (   self,
  error_code 
)

Set the "stat.nErrorCode"/"stat.sErrorText" node values.

◆ set_rpc_error_attribs()

def iodev.iodev.DevsimIodev.set_rpc_error_attribs (   self,
  rpc_error_code 
)

Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values.

◆ sim_thr_user()

def iodev.iodev.DevsimIodev.sim_thr_user (   self)

Simulation Thread managing the iodev status.

Member Data Documentation

◆ initialised

iodev.iodev.DevsimIodev.initialised

◆ sim_init_time

iodev.iodev.DevsimIodev.sim_init_time

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