Radiocraft Wireless M-Bus extension module  2.18
Exported functions

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...
 

Detailed Description

These functions are required to allow the module to be loaded from VPL.

Function Documentation

◆ moduleInit()

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.

Returns
0 Success
1 Failed

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.

◆ moduleNotify()

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().

Parameters
[in]eventThe event ID.
[in]parmThe event parameter.

Definition at line 2522 of file mod_mbus.c.

References mbusClose(), mbusDebug(), and mbusStopReader().