beautypg.com

Solvline Eddy DK User Manual

Page 117

background image

Eddy DK Programmer Guide

117

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

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