PROFINET Device4.2.0
 
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
 Chat.
 
#define PN_API_IOD_LOG_CHAT_HIGH   8
 Chat, level high.
 
#define PN_API_IOD_LOG_NOTE   7
 Note, level normal.
 
#define PN_API_IOD_LOG_NOTE_HIGH   6
 Note, level high.
 
#define PN_API_IOD_LOG_WARNING   5
 Warning.
 
#define PN_API_IOD_LOG_WARNING_HIGH   4
 Warning, level high (unexpected situation).
 
#define PN_API_IOD_LOG_ERROR   3
 Error, tradeable.
 
#define PN_API_IOD_LOG_ERROR_FATAL   2
 Error, not tradeable (cannot be switched off).
 
#define PN_API_IOD_LOG_DEACTIVATED   1
 Logging off.