PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_APP_IOD_getSubslotIndex()

uint32_t PN_APP_IOD_getSubslotIndex ( uint32_t  slot,
uint32_t  subslot 
)

Get the index of a subslot based on its subslot number.

The app stored input/output data in forms of two dimensional matrices, where each element in the matrix represents a subslot. This function gets the index of a subslot in the matrix based on its PROFINET subslot number. If subslot index is given as input parameter, it is returned as it is.

Parameters
[in]slotSlot number.
[in]subslotSubslot number.
Returns
subslot index as uint32_t.
Return values
subslotindex