dnp3 (C API) 1.1.0
dnp3_read_handler_t Struct Reference

General handler that will receive all values read from the outstation. More...

#include <dnp3.h>

Data Fields

void(* begin_fragment )(dnp3_read_type_t, dnp3_response_header_t, void *)
 Marks the beginning of a fragment. More...
 
void(* end_fragment )(dnp3_read_type_t, dnp3_response_header_t, void *)
 Marks the end of a fragment. More...
 
void(* handle_binary_input )(dnp3_header_info_t, dnp3_binary_input_iterator_t *, void *)
 Handle binary input data. More...
 
void(* handle_double_bit_binary_input )(dnp3_header_info_t, dnp3_double_bit_binary_input_iterator_t *, void *)
 Handle double-bit binary input data. More...
 
void(* handle_binary_output_status )(dnp3_header_info_t, dnp3_binary_output_status_iterator_t *, void *)
 Handle binary output status data. More...
 
void(* handle_counter )(dnp3_header_info_t, dnp3_counter_iterator_t *, void *)
 Handle counter data. More...
 
void(* handle_frozen_counter )(dnp3_header_info_t, dnp3_frozen_counter_iterator_t *, void *)
 Handle frozen counter input data. More...
 
void(* handle_analog_input )(dnp3_header_info_t, dnp3_analog_input_iterator_t *, void *)
 Handle analog input data. More...
 
void(* handle_analog_output_status )(dnp3_header_info_t, dnp3_analog_output_status_iterator_t *, void *)
 Handle analog output status data. More...
 
void(* handle_octet_string )(dnp3_header_info_t, dnp3_octet_string_iterator_t *, void *)
 Handle octet string data. More...
 
void(* on_destroy )(void *arg)
 Callback when the underlying owner doesn't need the interface anymore. More...
 
void * ctx
 Context data. More...
 

Detailed Description

General handler that will receive all values read from the outstation.

Field Documentation

◆ begin_fragment

void(* dnp3_read_handler_t::begin_fragment) (dnp3_read_type_t, dnp3_response_header_t, void *)

Marks the beginning of a fragment.

Parameters
read_typeDescribes what triggered the read event
headerHeader of the fragment
ctxContext data

◆ ctx

void* dnp3_read_handler_t::ctx

Context data.

◆ end_fragment

void(* dnp3_read_handler_t::end_fragment) (dnp3_read_type_t, dnp3_response_header_t, void *)

Marks the end of a fragment.

Parameters
read_typeDescribes what triggered the read event
headerHeader of the fragment
ctxContext data

◆ handle_analog_input

void(* dnp3_read_handler_t::handle_analog_input) (dnp3_header_info_t, dnp3_analog_input_iterator_t *, void *)

Handle analog input data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_analog_output_status

void(* dnp3_read_handler_t::handle_analog_output_status) (dnp3_header_info_t, dnp3_analog_output_status_iterator_t *, void *)

Handle analog output status data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_binary_input

void(* dnp3_read_handler_t::handle_binary_input) (dnp3_header_info_t, dnp3_binary_input_iterator_t *, void *)

Handle binary input data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_binary_output_status

void(* dnp3_read_handler_t::handle_binary_output_status) (dnp3_header_info_t, dnp3_binary_output_status_iterator_t *, void *)

Handle binary output status data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_counter

void(* dnp3_read_handler_t::handle_counter) (dnp3_header_info_t, dnp3_counter_iterator_t *, void *)

Handle counter data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_double_bit_binary_input

void(* dnp3_read_handler_t::handle_double_bit_binary_input) (dnp3_header_info_t, dnp3_double_bit_binary_input_iterator_t *, void *)

Handle double-bit binary input data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_frozen_counter

void(* dnp3_read_handler_t::handle_frozen_counter) (dnp3_header_info_t, dnp3_frozen_counter_iterator_t *, void *)

Handle frozen counter input data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ handle_octet_string

void(* dnp3_read_handler_t::handle_octet_string) (dnp3_header_info_t, dnp3_octet_string_iterator_t *, void *)

Handle octet string data.

Parameters
infoGroup/variation and qualifier information
itIterator of point values in the response. This iterator is valid only within this call. Do not copy it.
ctxContext data

◆ on_destroy

void(* dnp3_read_handler_t::on_destroy) (void *arg)

Callback when the underlying owner doesn't need the interface anymore.

Parameters
argContext data

The documentation for this struct was generated from the following file: