Solvline Eddy DKV2.1.0.3 User Manual

Page 96

Advertising
background image

Chapter 6. Library

Introduction

96

Function

Sets pullup value when Port A, B, C are all in input mode.

Format

void ioctl(int fd, SETGPIOVAL_LM, int *value[3]);

Parameter

fd

Handle to GPIO device(‚/dev/eddy_gpio‛)

mode

Pointer to the buffer that stores the ‚pullup‛ value
of Port A, B, C.
Bit value 0 means Pulldown, 1 means Pullup.

Returns

None

Notice

Any value is ok for bits that are not set to be used GPIO

GETGPIOPUL_LM

Function

Reads Read/Write status value for Port A, B, C

Format

void ioctl(int fd, GETGPIOVAL_LM, int *mode[3]);

Parameter

fd

Handle to GPIO device(‚/dev/eddy_gpio‛)

mode

Pointer to the buffer that will store the ‚pullup‛
value of Port A, B, C

Returns

None

Notice

SETGPIOMOD_LA
SETGPIOMOD_LB
SETGPIOMOD_LC

Function

Sets Read/Write direction for one of Port A, B, C

Format

void ioctl(int fd, SETGPIOMOD_L?, int *mode[3]);

Parameter

fd

Handle to GPIO device(‚/dev/eddy_gpio‛)

mode

Pointer to the buffer that stores ‚mode‛ value.
Bit value 0 means input, 1 means output.

Returns

None

Notice

Any value is ok for bits that are not set to be used GPIO

GETGPIOMOD_LA
GETGPIOMOD_LB
GETGPIOMOD_LC

Function

Reads Read/Write direction for one of Port A, B, C

Format

void ioctl(int fd, GETGPIOMOD_L?, int *mode[3]);

Parameter

fd

Handle to GPIO device(‚/dev/eddy_gpio‛)

Advertising