IO-Link Master  1.03.03

Overview

Non IO-Link related functions.

Functions

IOL_FUNC_DECL void IOLM_API_vSetPortCount (INT8U u8PortCnt_p)
 Set the number of ports. More...
 
IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_eInit (void)
 Initialize stack. More...
 
IOL_FUNC_DECL void IOLM_API_vRun (void)
 Mainloop run. More...
 

Function Documentation

◆ IOLM_API_eInit()

IOL_FUNC_DECL IOL_EErrorInfo IOLM_API_eInit ( void  )

Initialize stack.

This function has to be called once before any other call. It initializes the stack and its internal variables. If it was successful the stack is ready for communication.

Returns
void
Precondition
Periphery is prepared.
Postcondition
Stack is ready.
IRQ-safe
No Function needs to be called in Mainloop context.

◆ IOLM_API_vRun()

IOL_FUNC_DECL void IOLM_API_vRun ( void  )

Mainloop run.

This is the Mainloop function. It has to be called at least once during an IO-Link cycle to process acyclic data or prepare data for the cyclic communication.

Returns
void
Precondition
None.
Postcondition
None.
IRQ-safe
No Function needs to be called in Mainloop context.

◆ IOLM_API_vSetPortCount()

IOL_FUNC_DECL void IOLM_API_vSetPortCount ( INT8U  u8PortCnt_p)

Set the number of ports.

This function has to be called once before any other call. It initializes the number of ports for further initialization of the stack and its internal variables. If it was successful the stack is ready to be initialized by IOLM_API_eInit.

Parameters
[in]u8PortCnt_pThe number of ports.
Returns
void
Precondition
The port number must be smaller than IOLM_PORT_COUNT.
Postcondition
Needs Mainloop run for further processing.
IRQ-safe
No Function needs s to be called in Mainloop context.