dnp3 (C API) 1.1.0
|
Informational callbacks that the outstation doesn't rely on to function. More...
#include <dnp3.h>
Data Fields | |
void(* | process_request_from_idle )(dnp3_request_header_t, void *) |
Called when a request is processed from the IDLE state. More... | |
void(* | broadcast_received )(dnp3_function_code_t, dnp3_broadcast_action_t, void *) |
Called when a broadcast request is received by the outstation. More... | |
void(* | enter_solicited_confirm_wait )(uint8_t, void *) |
Outstation has begun waiting for a solicited confirm. More... | |
void(* | solicited_confirm_timeout )(uint8_t, void *) |
Failed to receive a solicited confirm before the timeout occurred. More... | |
void(* | solicited_confirm_received )(uint8_t, void *) |
Received the expected confirm. More... | |
void(* | solicited_confirm_wait_new_request )(void *) |
Received a new request while waiting for a solicited confirm, aborting the response series. More... | |
void(* | wrong_solicited_confirm_seq )(uint8_t, uint8_t, void *) |
Received a solicited confirm with the wrong sequence number. More... | |
void(* | unexpected_confirm )(bool, uint8_t, void *) |
Received a confirm when not expecting one. More... | |
void(* | enter_unsolicited_confirm_wait )(uint8_t, void *) |
Outstation has begun waiting for an unsolicited confirm. More... | |
void(* | unsolicited_confirm_timeout )(uint8_t, bool, void *) |
Failed to receive an unsolicited confirm before the timeout occurred. More... | |
void(* | unsolicited_confirmed )(uint8_t, void *) |
Master confirmed an unsolicited message. More... | |
void(* | clear_restart_iin )(void *) |
Master cleared the restart IIN bit. More... | |
void(* | on_destroy )(void *arg) |
Callback when the underlying owner doesn't need the interface anymore. More... | |
void * | ctx |
Context data. More... | |
Informational callbacks that the outstation doesn't rely on to function.
It may be useful to certain applications to assess the health of the communication or to count statistics
void(* dnp3_outstation_information_t::broadcast_received) (dnp3_function_code_t, dnp3_broadcast_action_t, void *) |
Called when a broadcast request is received by the outstation.
function_code | Function code received |
action | Broadcast action |
ctx | Context data |
void(* dnp3_outstation_information_t::clear_restart_iin) (void *) |
Master cleared the restart IIN bit.
ctx | Context data |
void* dnp3_outstation_information_t::ctx |
Context data.
void(* dnp3_outstation_information_t::enter_solicited_confirm_wait) (uint8_t, void *) |
Outstation has begun waiting for a solicited confirm.
ecsn | Expected sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::enter_unsolicited_confirm_wait) (uint8_t, void *) |
Outstation has begun waiting for an unsolicited confirm.
ecsn | Expected sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
arg | Context data |
void(* dnp3_outstation_information_t::process_request_from_idle) (dnp3_request_header_t, void *) |
Called when a request is processed from the IDLE state.
header | Request header |
ctx | Context data |
void(* dnp3_outstation_information_t::solicited_confirm_received) (uint8_t, void *) |
Received the expected confirm.
ecsn | Expected sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::solicited_confirm_timeout) (uint8_t, void *) |
Failed to receive a solicited confirm before the timeout occurred.
ecsn | Expected sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::solicited_confirm_wait_new_request) (void *) |
Received a new request while waiting for a solicited confirm, aborting the response series.
ctx | Context data |
void(* dnp3_outstation_information_t::unexpected_confirm) (bool, uint8_t, void *) |
Received a confirm when not expecting one.
unsolicited | True if it's an unsolicited response confirm, false if it's a solicited response confirm |
seq | Received sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::unsolicited_confirm_timeout) (uint8_t, bool, void *) |
Failed to receive an unsolicited confirm before the timeout occurred.
ecsn | Expected sequence number |
retry | Is it a retry |
ctx | Context data |
void(* dnp3_outstation_information_t::unsolicited_confirmed) (uint8_t, void *) |
Master confirmed an unsolicited message.
ecsn | Expected sequence number |
ctx | Context data |
void(* dnp3_outstation_information_t::wrong_solicited_confirm_seq) (uint8_t, uint8_t, void *) |
Received a solicited confirm with the wrong sequence number.
ecsn | Expected sequence number |
seq | Received sequence number |
ctx | Context data |