versadac  1
versadac - Scalable Recorder Firmware
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
mc_deviceRunnable Class Reference

Public Member Functions

 mc_deviceRunnable (sint16 z_deviceNumber)
 
void runTask ()
 
bool getEnable ()
 
bool getOnline ()
 
uint8 getModbusAddress ()
 
uint32 getTimeout ()
 
uint16 getNetwork ()
 
double getAHIGHI ()
 
double getAMEDI ()
 
double getALOWI ()
 
uint32 getTOTAL_RQ ()
 
uint32 getTOTAL_GD ()
 
uint32 getTOTAL_BD ()
 
uint32 getTOTAL_01 ()
 
uint32 getTOTAL_09 ()
 
uint32 getTOTAL_02 ()
 
uint32 getTOTAL_03 ()
 
uint32 getTOTAL_04 ()
 
uint32 getTOTAL_10 ()
 
uint32 getTOTAL_11 ()
 
uint32 getTOTAL_TO ()
 
uint32 getTOTAL_RT ()
 
uint32 getTOTAL_LB ()
 
uint32 getTOTAL_MR ()
 
ENUM_MCStatus getStatus ()
 
void lock ()
 
void unlock ()
 
int open (char *z_addressOrName)
 
ENUM_MCStatus login (int z_socketFd, uint8 z_modbusAddress)
 
ENUM_MCStatus getDataStatus (void)
 
void setAddressOrName (char *z_addressOrName)
 
void setModbusAddress (uint8 z_modbusAddress)
 
void setPidAddress (uint8 z_pidAddress)
 
void setUsername (char *z_username)
 
void setPassword (char *z_password)
 
void setSocketTimeout (uint32 z_timeout)
 
void setNetwork (uint16 z_network)
 
void setRetries (uint16 z_retries)
 
void setMaxBlockSize (uint16 z_maxBlock)
 
void setEnable (bool z_enable)
 
void setOnline (bool z_online)
 
void setBoundaries (uint16 z_numberOfBoundaries, uint16 *z_boundaries)
 
void setLoginRequired (bool z_loginRequired)
 
void setShareSocket (bool z_shareSocket)
 
void setUpdateRate (uint8 z_rateSpecifier, double z_interval)
 
void setVerbose (bool z_verbose)
 
void setVerboseLists ()
 
void setVerboseFile (FILE *z_verboseFile)
 
void setEnableMerge (bool z_enable)
 
void transact (mc_data *z_transaction)
 
void change_priority (sint16 z_increment, uint8 *z_old_priority)
 
- Public Member Functions inherited from OSRunnableTask
void stop ()
 

Static Public Member Functions

static void add (uint8 z_deviceNumber, mc_data *z_data, ENUM_MCUpdateIntervals z_frequency)
 
static void add (mc_data *z_data, uint32 z_timeout, uint16 z_network)
 
static void setNumberOfDevices (uint16 z_numberOfDevices)
 
static mc_deviceRunnablegetDevice (uint16 z_deviceNumber)
 
static mc_deviceRunnablegetUnregisteredDevice ()
 
static void setTaskPriority (uint8 z_priority)
 
static void setTaskStack (uint16 z_stackSize)
 

Static Public Attributes

static mc_deviceRunnablem_devices [MAX_MC_DEVICES]
 
static uint16 m_numberOfDevices = 0
 

Friends

void mcd_verboseUnregistered (bool on)
 
void mcd_verbosePort (int, int)
 

Additional Inherited Members

- Protected Attributes inherited from OSRunnableTask
unsigned char m_bStop
 

Member Data Documentation

mc_deviceRunnable * mc_deviceRunnable::m_devices
static
Initial value:
=
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

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