DlnGpioPinGetEventCfg() Function

Syntax

C/C++
 DLN_RESULT DlnGpioPinGetEventCfg(
    HDLN handle, 
    uint8_t pin, 
    uint8_t* eventType,
    uint16_t* eventPeriod
                        );
     

The DlnGpioPinGetEventCfg() function obtains current event generation conditions for the specified pin.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A number of the pin to retrieve the information from.
eventType
A pointer to an unsigned 8-bit integer. The integer will be filled with currently set event generation conditions for the pin after the function execution.
eventPeriod
A pointer to an unsigned 8-bit integer. The integer will be filled with current event repeat interval after the function execution.

Results:

Result Description
DLN_RES_SUCCESS Event generation conditions were successfully retrieved.
DLN_RES_INVALID_PIN_NUMBER Invalid pin number was specified.

This function is defined in the dln_gpio.h file.