Solvline Eddy DK User Manual
Page 116

Eddy DK Programmer Guide
116
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