Skip to content
Snippets Groups Projects
Commit aa8b391b authored by al.schwinn's avatar al.schwinn
Browse files

Bug 1189 - Allow to get/set specific registers of a device

parent db1f4ad7
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ namespace AllTypes
static void setup(const ServiceLocator* serviceLocator);
static void cleanup();
static bool isInitialized(){ return AbstractAllTypes::isInitialized_; }
static void setPLCSlaveRegisters(Silecs::PLC* pPLC, const ServiceLocator* serviceLocator);
static void getPLCMasterRegisters(Silecs::PLC* pPLC, const ServiceLocator* serviceLocator);
......@@ -134,6 +135,11 @@ namespace AllTypes
static inline Silecs::Cluster* theCluster() { return AbstractAllTypes::theCluster(); }
static void setup(const ServiceLocator* serviceLocator) { AbstractAllTypes::setup(serviceLocator); }
static void cleanup() { AbstractAllTypes::cleanup(); }
static bool isInitialized(){ return AbstractAllTypes::isInitialized(); }
static Silecs::PLC* getPLC(Device* pDevice)
{
return AbstractAllTypes::theCluster()->getPLC(pDevice->plcHostName.get(),pDevice->parameterFile.get());
}
static MyROBlock_Type MyROBlock;
static MyRWBlock_Type MyRWBlock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment