IO-Link Master  1.03.03
Data Storage

Overview

Data Storage API.

Functions

IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_DS_eSet (INT8U u8Port_p, IOLM_EDSActivationState eActState_p, IOLM_EDSMode eMode_p)
 Setup Data Storage mode. More...
 
IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_DS_eDelete (INT8U u8Port_p)
 Delete Data Storage content. More...
 

Function Documentation

◆ IOLM_API_DS_eDelete()

IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_DS_eDelete ( INT8U  u8Port_p)

Delete Data Storage content.

The Data Storage content is marked as invalid and the non volatile memory will be cleared. This function can be called if no Data Storage activity is pending.

Parameters
[in]u8Port_pThe port number of the affected port.
Returns
IOL_EErrorInfo ErrorCode
Precondition
The port number must be smaller than IOLM_PORT_COUNT.
Postcondition
Data Storage is empty.
IRQ-safe
No Function needs to be called in Mainloop context.

◆ IOLM_API_DS_eSet()

IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_DS_eSet ( INT8U  u8Port_p,
IOLM_EDSActivationState  eActState_p,
IOLM_EDSMode  eMode_p 
)

Setup Data Storage mode.

Data Storage set function is used to enable or disable the DS activity for a specific port. The function can be called every time if no DS action is pending. If the Data Storage is enabled it starts immediately to download/upload data.

Parameters
[in]u8Port_pThe port number of the affected port.
[in]eActState_pState of DS (see IOLM_EDSActivationState).
[in]eMode_pMode of DS (see IOLM_EDSMode).
Returns
IOL_EErrorInfo ErrorCode
Precondition
The port number must be smaller than IOLM_PORT_COUNT.
Postcondition
None.
IRQ-safe
No Function needs to be called in Mainloop context.