PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 96
4.5.61. CPM100_GetNMTError
Description:
User can use the function CPM100_GetNMTError to check if the
CPM100 gets NMT Error Event for any slave node. The parameters of
the function indicate that which CPM100 gets the NMT Error Event,
which node produces this event, and what kind of event it is. The
parameter, BoardNo, indicates the number of the CPM100 which
indicates the Heartbeat_Event or Node_Guarding_Event. The
parameter, Node, is the ID of the slave node which responds the
heartbeat protocol or guarding protocol. The parameter, NMTErr, is the
NMTErr event mode. If the NMTErr event is Node_Guarding_Event, the
NMTErr parameter is CPM_Node_Guarding_Event or else the CPM_
Heartbeat_Event is obtained. The function CPM100_GetNMTError is
usually applied with the function CPM100_InstallNMTErrISR. About the
demo please refer to the section 4.1.2 NMT_Protocol.
Syntax:
WORD
CPM100_GetNMTErr (
BYTE
*BoardNo,
BYTE
*Node,
BYTE
*NMTErr)
Parameter:
*BoardNo:
[output] Get the board number of the CPM100 which
receives the NMT Error Event.
*Node:
[output] Get the slave node ID of the NMT Error Event.
*NMTErr:
[output] The value CPM_Node_Guarding_Event indicates the
Node Guarding Event, and the
CPM_Heartbeat_Event is the Heartbeat Event.