Go to the source code of this file.
Namespaces | |
namespace | cp1616 |
namespace | cp1616::pnio_device_callbacks |
Defines | |
#define | CP1616_IO_DEVICE_CALLBACKS_CPP |
Functions | |
void | cp1616::pnio_device_callbacks::apduStatusIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_APDU_STATUS_IND apdu_status) |
This callback is called after the state of the Controller has changed. | |
void | cp1616::pnio_device_callbacks::arAbortIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_AR_REASON reason_code) |
This callback is called by the IO Base Device interface as soon as the connection is terminated after a data exchange with the IO Controller began. | |
void | cp1616::pnio_device_callbacks::arCheckIndication (PNIO_UINT32 dev_handle, PNIO_UINT32 host_ip, PNIO_UINT16 ar_type, PNIO_UUID_TYPE ar_uuid, PNIO_UINT32 ar_properties, PNIO_UUID_TYPE cmi_obj_uuid, PNIO_UINT16 cmi_station_name_length, PNIO_UINT8 *p_cmi_station_name, PNIO_AR_TYPE *p_ar) |
This callback is called by the IO Base Device interface as soon as an IO controller establishes a connection with the IO Base Device user programm and transmits its expected configuration for the IO Base Device user program. As a result of this callback, application-relation global parameters are transferred to the IO Base user program for inspection. In case of errors in the application-relation layout, the IO Base Device user program can terminate the application-retional global parameters. | |
void | cp1616::pnio_device_callbacks::arIndataIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key) |
This callback is called by the IO Base Device interface as soon as an IO controller has transmitted the IO data for the first time. It signals the beginning of cyclical data exchange. | |
void | cp1616::pnio_device_callbacks::arInfoIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_AR_TYPE *p_ar) |
This callback is called by the IO Base Device interface as soon as the application-relation for the IO controller is laid out. Consequently, the IO-Base-Device user program is informed about the modules and submodules that will be operated in this application relation.. In this callback function user can initialize IO data in submodule to initial value 0 and can also set local consumer and provider status. | |
void | cp1616::pnio_device_callbacks::arOfflineIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_AR_REASON reason_code) |
This callback is called by the IO Base Device interface as soon as the connection is terminated before a data exchange with the IO Controller began. | |
void | cp1616::pnio_device_callbacks::checkIndication (PNIO_UINT32 dev_handle, PNIO_UINT32 api, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_DEV_ADDR *p_addr, PNIO_UINT32 *p_mod_ident, PNIO_UINT16 *p_mod_state, PNIO_UINT32 *p_sub_ident, PNIO_UINT16 *p_sub_state) |
This callback is called for each and every submodule of the IO Base Device interface for which the configuration does not match that of the IO controller. The user program is consequently given the option of changing the submodule layout or marking the submodule as compatible or incorrect. In case of agreement of the configurations, this callback is not called. | |
void | cp1616::pnio_device_callbacks::cpStopRequest (PNIO_UINT32 dev_handle) |
This callback is called by the IO Base Device interface, as soon as an IO controller recieves stop request from PNIO_device_stop function. | |
PNIO_IOXS | cp1616::pnio_device_callbacks::dataRead (PNIO_UINT32 dev_handle, PNIO_DEV_ADDR *p_addr, PNIO_UINT32 buffer_length, PNIO_UINT8 *p_buffer, PNIO_IOXS io_provider_status) |
Passes the output data from stack to the application. | |
PNIO_IOXS | cp1616::pnio_device_callbacks::dataWrite (PNIO_UINT32 dev_handle, PNIO_DEV_ADDR *p_addr, PNIO_UINT32 buffer_length, PNIO_UINT8 *p_buffer, PNIO_IOXS io_consumer_status) |
Passes the input data from the application to the stack. | |
void | cp1616::pnio_device_callbacks::deviceStopped (PNIO_UINT32 dev_handle, PNIO_UINT32 reserved) |
This callback is called by the IO Base Device interface after the device is stopped. | |
void | cp1616::pnio_device_callbacks::prmEndIndication (PNIO_UINT32 dev_handle, PNIO_UINT16 ar_number, PNIO_UINT16 session_key, PNIO_UINT32 api, PNIO_UINT16 slot_number, PNIO_UINT16 subslot_number) |
This callback is called by the IO Base Device interface, as soon as an IO controller signals the end of the parametrizing phase. | |
void | cp1616::pnio_device_callbacks::recordRead (PNIO_UINT32 dev_handle, PNIO_UINT32 api, PNIO_UINT16 ar_number, PNIO_UINT16 sessi, PNIO_UINT32 sequence_number, PNIO_DEV_ADDR *p_addr, PNIO_UINT32 record_index, PNIO_UINT32 *p_buffer_length, PNIO_UINT8 *p_buffer, PNIO_ERR_STAT *p_pnio_state) |
Passes the output data from stack to the application. | |
void | cp1616::pnio_device_callbacks::recordWrite (PNIO_UINT32 dev_handle, PNIO_UINT32 api, PNIO_UINT16 ar_number, PNIO_UINT16 sessi, PNIO_UINT32 sequence_number, PNIO_DEV_ADDR *p_addr, PNIO_UINT32 record_index, PNIO_UINT32 *p_buffer_length, PNIO_UINT8 *p_buffer, PNIO_ERR_STAT *p_pnio_state) |
This callback is called to notify that a write record request has been received from the PNIO controller. | |
void | cp1616::pnio_device_callbacks::requestDone (PNIO_UINT32 dev_handle, PNIO_UINT32 user_handle, PNIO_UINT32 status, PNIO_ERR_STAT *p_pnio_state) |
This callback is called by the IO Base Device interface, as soon as an alarm is sent. |
Callbacks required by IO Base library
Copyright {2015} {Frantisek Durovsky}
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file cp1616_io_device_callbacks.cpp.
#define CP1616_IO_DEVICE_CALLBACKS_CPP |
Definition at line 22 of file cp1616_io_device_callbacks.cpp.