lib60870-C  2.3.2
C source code library for the IEC 60870-5-101/104 protocols
Modules | Typedefs
Slave related functions
Collaboration diagram for Slave related functions:

Modules

 CS 101 slave (serial link layer) related functions
 
 CS 104 slave (TCP/IP server) related functions
 
 Common slave related functions and interfaces
 
 Slave callback handlers
 

Typedefs

typedef void(* CS101_ResetCUHandler) (void *parameter)
 Handler will be called when a link layer reset CU (communication unit) message is received. More...
 
typedef bool(* CS101_InterrogationHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, uint8_t qoi)
 Handler for interrogation command (C_IC_NA_1 - 100).
 
typedef bool(* CS101_CounterInterrogationHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, QualifierOfCIC qcc)
 Handler for counter interrogation command (C_CI_NA_1 - 101).
 
typedef bool(* CS101_ReadHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, int ioa)
 Handler for read command (C_RD_NA_1 - 102)
 
typedef bool(* CS101_ClockSynchronizationHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, CP56Time2a newTime)
 Handler for clock synchronization command (C_CS_NA_1 - 103) More...
 
typedef bool(* CS101_ResetProcessHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, uint8_t qrp)
 Handler for reset process command (C_RP_NA_1 - 105)
 
typedef bool(* CS101_DelayAcquisitionHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, CP16Time2a delayTime)
 Handler for delay acquisition command (C_CD_NA:1 - 106)
 
typedef bool(* CS101_ASDUHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu)
 Handler for ASDUs that are not handled by other handlers (default handler)
 

Detailed Description

Typedef Documentation

◆ CS101_ClockSynchronizationHandler

typedef bool(* CS101_ClockSynchronizationHandler) (void *parameter, IMasterConnection connection, CS101_ASDU asdu, CP56Time2a newTime)

Handler for clock synchronization command (C_CS_NA_1 - 103)

This handler will be called whenever a time synchronization command is received. NOTE: The CS104_Slave instance will automatically send an ACT-CON message for the received time sync command.

Parameters
[in]parameteruser provided parameter
[in]connectionrepresents the (TCP) connection that received the time sync command
[in]asduthe received ASDU
[in,out]thetime received with the time sync message. The user can update this time for the ACT-CON message
Returns
true when time synchronization has been successful, false otherwise

◆ CS101_ResetCUHandler

typedef void(* CS101_ResetCUHandler) (void *parameter)

Handler will be called when a link layer reset CU (communication unit) message is received.

NOTE: Can be used to empty the ASDU queues

Parameters
parametera user provided parameter