Solvline Eddy DKV2.1.0.3 User Manual

Page 95

Advertising
background image

Chapter 6. Library

Introduction

95

Parameter

fd

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

mode

Pointer to the buffer that stores ‚mode‛ value for
Port A, B, C.
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_LM

Function

Reads Read/Write direction for all Port A, B, C

Format

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

Parameter

fd

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

mode

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

Returns

None

Notice

SETGPIOVAL_LM

Function

Sets output value when Port A, B, C are all in output 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 ‚value‛ value
of Port A, B, C.
Bit value 0 means Low, 1 means High.

Returns

None

Notice

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

GETGPIOVAL_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 ‚value‛
value of Port A, B, C

Returns

None

Notice

SETGPIOPUL_LM

Advertising