Internal and external module buffers are now private
This commit is contained in:
committed by
Raphael Coeffic
parent
ab6033e4d5
commit
f952c5f7c7
@@ -356,6 +356,16 @@ uint8_t getRequiredProtocol(uint8_t module)
|
||||
static void* internalModuleContext = nullptr;
|
||||
static const etx_module_driver_t* internalModuleDriver = nullptr;
|
||||
|
||||
const etx_module_driver_t* getIntModuleDriver()
|
||||
{
|
||||
return internalModuleDriver;
|
||||
}
|
||||
|
||||
void* getIntModuleCtx()
|
||||
{
|
||||
return internalModuleContext;
|
||||
}
|
||||
|
||||
static void enablePulsesInternalModule(uint8_t protocol)
|
||||
{
|
||||
// start new protocol hardware here
|
||||
@@ -519,6 +529,16 @@ bool setupPulsesInternalModule()
|
||||
static void* externalModuleContext = nullptr;
|
||||
static const etx_module_driver_t* externalModuleDriver = nullptr;
|
||||
|
||||
const etx_module_driver_t* getExtModuleDriver()
|
||||
{
|
||||
return externalModuleDriver;
|
||||
}
|
||||
|
||||
void* getExtModuleCtx()
|
||||
{
|
||||
return externalModuleContext;
|
||||
}
|
||||
|
||||
void enablePulsesExternalModule(uint8_t protocol)
|
||||
{
|
||||
// start new protocol hardware here
|
||||
|
||||
Reference in New Issue
Block a user