12345678910111213141516171819202122232425262728293031323334353637 |
- #include "OemBusUnit.h"
- #include "OemBusUnitDevice.h"
- #include "LocalConfig.h"
- OemBusUnitDevice::OemBusUnitDevice()
- {
- }
- OemBusUnitDevice::~OemBusUnitDevice()
- {
- }
- int DATA_ACTION OemBusUnitDevice::ExitDriverProc()
- {
- //Get DPC
- BusUnitDPC *pDPC = (BusUnitDPC*)GetDrvDPC();
- //set exit flag
- pDPC->SetExitFlag();
- CCOS_PROC_TYPE Mode = GetConfigMode();
- if (Mode == CCOS_PROC_CHANNEL)
- {
- //unload Drivers
- UnloadAllRegistedDrivers();
- }
- return BusUnitLogic::ExitDriverProc();
- }
- void OemBusUnitDevice::SubscribeSelf() {
- //±ØÐë¶©ÔÄ
- BusUnitLogic::SubscribeSelf();
- SubscribeTopic(m_pMqttConntion, m_strEBusRoot.c_str());
- }
|