Вы здесь

Return Code Reference

DLN_RES_COMMAND_NOT_SUPPORTED (0x91)

This function is not supported be the specified DLN adapter. There are 2 possible reasons for this code: 1) The functionality related to the called function is not supported by this DLN-series adapter. If you need this functionality, you can order another DLN-series adapter. 2) The firmware version in your adapter is old. To enable this functionality, you need to update the device firmware.

DLN_RES_CONNECTION_LOST (0xA0)

The connection to the DLN adapter or DLN server was interrupted.

DLN_RES_INVALID_EVENT_PERIOD (0xAC)

Defining the event configuration, you specified the invalid event period. It may occur, for example, if you set the zero event period for the ALWAYS event type. For details, read Digital Input Events.

DLN_RES_INVALID_EVENT_TYPE (0xA9)

You specified the invalid event type. For details, read Digital Input Events.

DLN_RES_INVALID_HANDLE (0x8F)

The specified handle is not valid.

DLN_RES_INVALID_PIN_NUMBER

The specified pin number is not valid. Use the DlnGpioGetPinCount() function to get the available number of pins for your DLN-series adapter.

DLN_RES_NON_ZERO_RESERVED_BIT (0xAD)

One or more of the reserved bits in the DLN_GPIO_PIN_CONFIG structure are set to 1. These bits are reserved for future and must be set to zero. If the DLN-series adapter founds that any of these bits is set to 1, it returns the error code.

DLN_RES_PIN_IN_USE (0xA5)

The pin is assigned to another module of the adapter and cannot be assigned to the GPIO module. Use the DlnGetPinCfg() function to get the name of the module which the pin is assigned to.

DLN_RES_PIN_NOT_CONNECTED_TO_MODULE (0xAA)

The pin is not assigned to the GPIO module. Use the DlnGpioPinEnable() function to assign the pin to the GPIO module. Use the DlnGpioPinIsEnabled() function to check whether or not the pin is assigned to the GPIO module. Use the DlnGetPinCfg() function to get the name of the module which the pin is assigned to.

DLN_RES_SUCCESS (0x00)

The function was executed successfully.

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

Языки

Вход на сайт