lib60870-C  2.3.2
C source code library for the IEC 60870-5-101/104 protocols
iec60870_master.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016-2022 Michael Zillgith
3  *
4  * This file is part of lib60870-C
5  *
6  * lib60870-C is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * lib60870-C is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with lib60870-C. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * See COPYING file for the complete license text.
20  */
21 
22 #ifndef SRC_IEC60870_MASTER_H_
23 #define SRC_IEC60870_MASTER_H_
24 
25 #include <stdint.h>
26 #include <stdbool.h>
27 
28 #include "iec60870_common.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
53 typedef bool (*CS101_ASDUReceivedHandler) (void* parameter, int address, CS101_ASDU asdu);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* SRC_IEC60870_MASTER_H_ */
struct sCS101_ASDU * CS101_ASDU
Application Service Data Unit (ASDU) for the CS101/CS104 application layer.
Definition: iec60870_common.h:216
Common definitions for IEC 60870-5-101/104 These types are used by CS101/CS104 master and slaves.
bool(* CS101_ASDUReceivedHandler)(void *parameter, int address, CS101_ASDU asdu)
Callback handler for received ASDUs.
Definition: iec60870_master.h:53