Radiocraft Wireless M-Bus extension module  1.00.00
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 1618 of file mod_mbus.c.

References lock, mbusCallClose(), mbusCallInfo(), mbusCallOpen(), mbusCallReceive(), mbusCallRegisterSlave(), mbusCallSend(), mbusCallSetFilter(), mbusDebug(), and mbusPower().

◆ 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 1692 of file mod_mbus.c.

References mbusClose(), and mbusDebug().