Radiocraft Wireless M-Bus extension module
2.18
|
These functions are required to allow the module to be loaded from VPL. More...
Functions | |
int | moduleInit (void) |
This function is called by the firmware when 'extModuleLoad' is called. More... | |
void | moduleNotify (int event, int parm) |
This function is called by the firmware to notify the module about an event. More... | |
These functions are required to allow the module to be loaded from VPL.
int moduleInit | ( | void | ) |
This function is called by the firmware when 'extModuleLoad' is called.
Any initialization the module might require is performed here, including installing functions and function blocks.
Definition at line 2395 of file mod_mbus.c.
References cfg_activated, cfg_active, mbus_slave_address::id, lock, mbus_slave_address::manufacturer, MAX_SLAVE_REGISTERS, mbus_slave_register, mbusCallClose(), mbusCallFilterEnable(), mbusCallFilterReceive(), mbusCallGetBufferLevel(), mbusCallInfo(), mbusCallOpen(), mbusCallReceive(), mbusCallRegisterSlave(), mbusCallSend(), mbusDebug(), mbusPower(), mbus_slave_address::type, and mbus_slave_address::version.
void moduleNotify | ( | int | event, |
int | parm | ||
) |
This function is called by the firmware to notify the module about an event.
In case of a halt, reset or shutdown event is revived then the interface is closed by calling mbusClose().
[in] | event | The event ID. |
[in] | parm | The event parameter. |
Definition at line 2522 of file mod_mbus.c.
References mbusClose(), mbusDebug(), and mbusStopReader().