PROFINET Device  v1.04.03
PROFINET Device API

Overview

Modules

 PROFINET Device Error Codes
 

Functions

uint32_t PN_API_DEV_setInputDataBuffer (uint8_t *pAddr1_p, uint8_t *pAddr2_p, uint8_t *pAddr3_p, uint16_t bufferSize_p)
 Set input data triple buffer of IO device. More...
 
uint32_t PN_API_DEV_setOutputDataBuffer (uint8_t *pAddr1_p, uint8_t *pAddr2_p, uint8_t *pAddr3_p, uint16_t bufferSize_p)
 Set output data triple buffer of IO device. More...
 
uint32_t PN_API_DEV_getBufferOutputData (uint8_t **ppBuffer_p)
 Get buffer of output data triple buffer of IO device with last written output data. More...
 
uint32_t PN_API_DEV_getBufferInputData (uint8_t **ppBuffer_p)
 Get buffer of input data triple buffer of IO device for next to be written input data. More...
 
uint32_t PN_API_DEV_releaseBufferInputData (void)
 Release buffer of input data triple buffer of IO device. More...
 
uint32_t PN_API_DEV_applyEquipmentConfiguration (void)
 Apply equipment configuration. More...
 
uint32_t PN_API_DEV_plugModule (uint16_t slotNumber_p, PN_API_DEV_SModuleDescriptor_t *pModuleDescriptor_p)
 Plug a module. More...
 
uint32_t PN_API_DEV_plugSubmodule (uint16_t slotNumber_p, uint16_t subslotNumber_p, PN_API_DEV_SSubmoduleDescriptor_t *pSubmoduleDescriptor_p)
 Plug a submodule. More...
 
uint32_t PN_API_DEV_pullModule (uint16_t slotNumber_p)
 Pull module. More...
 
uint32_t PN_API_DEV_pullSubmodule (uint16_t slotNumber_p, uint16_t subslotNumber_p)
 Pull submodule. More...
 
uint32_t PN_API_DEV_registerModuleSubstitutes (PN_API_DEV_SModuleSubstitute_t *pModuleSubstitutes_p, uint8_t numberElements_p, PN_API_DEV_SModuleSubstituteEntry_t **ppModuleSubstituteEntryAddress_p)
 Register an array of module substitutes on stack. More...
 
uint32_t PN_API_DEV_registerSubmoduleSubstitutes (PN_API_DEV_SSubmoduleSubstitute_t *pSubmoduleSubstitutes_p, uint8_t numberElements_p, PN_API_DEV_SSubmoduleSubstituteEntry_t **ppSubmoduleSubstituteEntryAddress_p)
 Register an array of submodule substitutes on stack. More...
 
uint32_t PN_API_DEV_getRunState (PN_API_DEV_ERunState_t *pRunState_p)
 Get IO device run state. More...
 
uint32_t PN_API_DEV_getDeviceState (PN_API_DEV_EDeviceState_t *pDeviceState_p)
 Get IO device state. More...
 
uint32_t PN_API_DEV_setApplicationReady (PN_API_DEV_EAr_t ar_p)
 Set IO device application ready on application relation establishment. More...
 
uint32_t PN_API_DEV_setApplicationDataState (PN_API_DEV_EApplicationDataState_t state_p)
 Set IO device application data state. More...
 
uint32_t PN_API_DEV_setDiagnosisData (PN_API_DEV_SDiagnosisData_t *pData_p)
 Set IO device diagnosis data. More...
 
uint32_t PN_API_DEV_setAlarm (uint16_t alarmType_p)
 Set IO device alarm. More...
 
uint32_t PN_API_DEV_registerSetStationNameIndicatedCallback (PN_API_DEV_setStationNameIndicatedCallback cbFunction_p)
 Register IO device callback indicating ethernet interface station name has been set. More...
 
uint32_t PN_API_DEV_registerSetIpAddressIndicatedCallback (PN_API_DEV_setIpAddressIndicatedCallback cbFunction_p)
 Register IO device callback indicating ethernet interface IP address has been set. More...
 
uint32_t PN_API_DEV_registerFactoryResetIndicatedCallback (PN_API_DEV_factoryResetIndicatedCallback cbFunction_p)
 Register IO device callback indicating ethernet interface has been factory reset. More...
 
uint32_t PN_API_DEV_registerResetToFactoryIndicatedCallback (PN_API_DEV_resetToFactoryIndicatedCallback cbFunction_p)
 Register IO device callback indicating ethernet interface has been reset to factory. More...
 
uint32_t PN_API_DEV_registerConnectResponseCallback (PN_API_DEV_connectResponseCallback cbFunction_p)
 Register IO device callback indicating a connect response is to be sent on application relation establishment. More...
 
uint32_t PN_API_DEV_registerApplicationReadyRequestCallback (PN_API_DEV_applicationReadyRequestCallback cbFunction_p)
 Register IO device callback indicating a application ready request is to be sent on application relation establishment. More...
 
uint32_t PN_API_DEV_registerReleaseResponseCallback (PN_API_DEV_releaseResponseCallback cbFunction_p)
 Register IO device callback indicating a release response is to be sent. More...
 
uint32_t PN_API_DEV_registerReadRecordResponseCallback (PN_API_DEV_readRecordResponseCallback cbFunction_p)
 Register IO device callback indicating a read record response is to be sent. More...
 
uint32_t PN_API_DEV_registerWriteRecordResponseCallback (PN_API_DEV_writeRecordResponseCallback cbFunction_p)
 Register IO device callback indicating a write record response is to be sent. More...
 
uint32_t PN_API_DEV_registerConnectIndicatedCallback (PN_API_DEV_connectIndicatedCallback cbFunction_p)
 Register IO device callback indicating a connect request has been received. More...
 
uint32_t PN_API_DEV_registerParametrizationEndIndicatedCallback (PN_API_DEV_parametrizationEndIndicatedCallback cbFunction_p)
 Register IO device callback indicating a parametrization end control request has been received. More...
 
uint32_t PN_API_DEV_registerAbortIndicatedCallback (PN_API_DEV_abortIndicatedCallback cbFunction_p)
 Register IO device callback indicating a abort request has been received. More...
 
uint32_t PN_API_DEV_registerAlarmUpdateIndicatedCallback (PN_API_DEV_alarmUpdateIndicatedCallback cbFunction_p)
 Register IO device callback indicating a alarm update request has been received. More...
 
uint32_t PN_API_DEV_registerReadRecordIndicatedCallback (PN_API_DEV_readRecordIndicatedCallback cbFunction_p)
 Register IO device callback indicating a read record request has been received. More...
 
uint32_t PN_API_DEV_registerWriteRecordIndicatedCallback (PN_API_DEV_writeRecordIndicatedCallback cbFunction_p)
 Register IO device callback indicating a write record request has been received. More...
 
uint32_t PN_API_DEV_getModuleDiffBlockNumberOfModules (PN_API_DEV_EAr_t ar_p, uint16_t *pNumberOfModules_p)
 Get number of modules of IO device module difference block. More...
 
uint32_t PN_API_DEV_getModuleDiffBlockModule (PN_API_DEV_EAr_t ar_p, uint16_t index_p, PN_API_DEV_SModule_t *pModule_p)
 Get module of IO device module difference block. More...
 
uint32_t PN_API_DEV_getModuleDiffBlockSubmodule (PN_API_DEV_EAr_t ar_p, PN_API_DEV_SModule_t *pModule_p, uint16_t index_p, PN_API_DEV_SSubmodule_t *pSubmodule_p)
 Get sub module of IO device module difference block. More...
 
uint32_t PN_API_DEV_getNumberOfExpectedModules (PN_API_DEV_EAr_t ar_p, uint16_t *pNumberOfModules_p)
 Get number of expected IO device modules. More...
 
uint32_t PN_API_DEV_getExpectedModule (PN_API_DEV_EAr_t ar_p, uint16_t index_p, PN_API_DEV_SModule_t *pModule_p)
 Get expected IO device modules. More...
 
uint32_t PN_API_DEV_getExpectedSubmodule (PN_API_DEV_EAr_t ar_p, PN_API_DEV_SModule_t *pModule_p, uint16_t index_p, PN_API_DEV_SSubmodule_t *pSubmodule_p)
 Get expected IO device sub modules. More...