lib60870-C  2.3.2
C source code library for the IEC 60870-5-101/104 protocols
Typedefs
iec60870_master.h File Reference

Common master side definitions for IEC 60870-5-101/104 These types are used by CS101/CS104 master. More...

#include <stdint.h>
#include <stdbool.h>
#include "iec60870_common.h"
Include dependency graph for iec60870_master.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef bool(* CS101_ASDUReceivedHandler) (void *parameter, int address, CS101_ASDU asdu)
 Callback handler for received ASDUs. More...
 

Detailed Description

Common master side definitions for IEC 60870-5-101/104 These types are used by CS101/CS104 master.

Typedef Documentation

◆ CS101_ASDUReceivedHandler

typedef bool(* CS101_ASDUReceivedHandler) (void *parameter, int address, CS101_ASDU asdu)

Callback handler for received ASDUs.

This callback handler will be called for each received ASDU. The CS101_ASDU object that is passed is only valid in the context of the callback function.

Parameters
parameteruser provided parameter
addressaddress of the sender (slave/other station) - undefined for CS 104
asduobject representing the received ASDU
Returns
true if the ASDU has been handled by the callback, false otherwise