Вы здесь

GPIO Interface Functions

Use the GPIO Interface functions to control and monitor the GPIO module of a DLN-series adapter.

General pin information:

DlnGpioGetPinCount()

Retrieves the number of pins that can be assigned to the GPIO module.

DlnGpioPinEnable()

Assigns a pin to the GPIO module.

DlnGpioPinDisable()

Unassigns a pin from the GPIO module.

DlnGpioPinIsEnabled()

Retrieves whether a pin is connected to the GPIO module.

DlnGpioPinSetDirection()

Configures a pin as a digital input or output.

DlnGpioPinGetDirection()

Retrieves whether a pin is configured as a digital input or output.

DlnGpioPinSetOutVal()

Defines a value on the output pin.

DlnGpioPinGetOutVal()

Retrieves the output value configured to the pin.

DlnGpioPinGetVal()

Retrieves the actual value on the I/O line.

Event functions:

DlnGpioPinSetEventCfg()

Configures event generation for a pin.

DlnGpioPinGetEventCfg()

Retrieves event generation configuration for a pin.

DlnGpioPinGetSupportedEventTypes()

Returns the list of the event types available for a pin.

Debounce filter functions:

DlnGpioPinDebounceEnable()

Enables the Debounce Filter on a pin.

DlnGpioPinDebounceDisable()

Disables the Debounce Filter on a pin

DlnGpioPinDebounceIsEnabled()

Determines whether the Debounce Filter is enabled on a pin.

DlnGpioSetDebounce()

Configures the debounce interval (the minimum duration of pulses to be registered).

DlnGpioGetDebounce()

Retrieves the debounce interval value.

Open Drain mode functions:

DlnGpioPinOpendrainEnable()

Enables the Open Drain mode on a pin.

DlnGpioPinOpendrainDisable()

Disables the Open Drain mode on a pin.

DlnGpioPinOpendrainIsEnabled()

Determines whether the Open Drain mode in enabled on a pin.

Pull-up/Pull-down resistors functions:

DlnGpioPinPullupEnable()

Enables the pull-up resistor on a pin.

DlnGpioPinPulldownEnable()

Enables the pull-down resistor on a pin.

DlnGpioPinPullupDisable()

Disables the pull-up resistor on a pin.

DlnGpioPinPulldownDisable()

Disables the pull-down resistor on a pin.

DlnGpioPinPullupIsEnabled()

Determines whether the pull-up resistor is enabled on a pin.

DlnGpioPinPulldownIsEnabled()

Determines whether the pull-down resistor is enabled on a pin.

The dln_gpio.h file declares the GPIO Interface functions.

Rating: 
Голосов пока нет

Языки

Вход на сайт