mpiUserLimitEventNotifyGet

Declaration

MPI_DECL1 MPI_RESULT MPI_DECL2
   mpiUserLimitEventNotifyGet(MPIUserLimit       userLimit,
                              MPIEventNotifyData *eventNotifyData);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiUserLimitEventNotifyGet reads the user-specified controller addresses. User limit events will include the data stored at these addresses when the event occurs.

userLimit The user limit object handle.
eventNotifyData A pointer where the user-specified address are stored.

Sample Code

void userLimitAddBackgroundCycleTimestamp(MPIUserLimit userLimit, 
                                          MFWData* firmware)
    {
        MPI_RESULT                  returnValue;
        MPIEventNotifyData    eventNotifyData;

        returnValue = mpiUserLimitEventNotifyGet(userLimit, &eventNotifyData);

        msgCHECK(returnValue);

        eventNotifyData.address[0] = &firmware->SystemData.Data.BackgroundCycle;

        returnValue = mpiUserLimitEventNotifySet(userLimit, &eventNotifyData);

        msgCHECK(returnValue);
    }

See Also

mpiUserLimitEventNotifySet | MPIEventData