The DlnGetCommandRestriction() function retrieves the command restrictions under the current conditions. This allows to avoid errors when executing functions. For details, read Specific Command Restrictions.
DlnGetCommandRestriction()
DLN_RESULT DlnGetCommandRestriction( HDLN handle, DLN_MSG_ID msgId, uint16_t entity, DLN_RESTRICTION *restriction );
A handle to the DLN device.
A code of the command. You can find command codes in header files of the corresponding module.
A number of a pin or a port (depending on the entity used in the command).
A pointer to the DLN_RESTRICTION structure that receives the command restriction.
DLN_RESTRICTION
The function successfully retrieved the command restriction.
The DlnGetCommandRestriction() function is defined in the dln_generic.h file.
dln_generic.h