PROFINET Device4.0.3
 
Loading...
Searching...
No Matches
Utils

Overview

Collection of useful functions.

Typedefs

typedef void(* PN_API_IOD_errorLogCbf) (PN_API_IOD_Handle_t *const pnHandle, const uint32_t errorLevel)
 Callback function prototype to indicate the need to log an error.
 

Functions

uint32_t PN_API_IOD_getVersion (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DkVersion_t *const version)
 Reads the version of the stack.
 
uint32_t PN_API_IOD_getLastError (PN_API_IOD_Handle_t *const pnHandle)
 Provides to the application a greater deteiled error value.
 
uint32_t PN_API_IOD_fatalError (PN_API_IOD_Handle_t *const pnHandle)
 Called when a "fatal error" in detected by the application.
 
#define PN_API_IOD_LOG_CHAT   9
 
#define PN_API_IOD_LOG_CHAT_HIGH   8
 
#define PN_API_IOD_LOG_NOTE   7
 
#define PN_API_IOD_LOG_NOTE_HIGH   6
 
#define PN_API_IOD_LOG_WARNING   5
 
#define PN_API_IOD_LOG_WARNING_HIGH   4
 
#define PN_API_IOD_LOG_ERROR   3
 
#define PN_API_IOD_LOG_ERROR_FATAL   2
 
#define PN_API_IOD_LOG_DEACTIVATED   1