Internal and external module buffers are now private

This commit is contained in:
Raphael Coeffic
2022-08-11 12:15:46 +02:00
committed by Raphael Coeffic
parent ab6033e4d5
commit f952c5f7c7
24 changed files with 280 additions and 216 deletions
+20
View File
@@ -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