This function reads the data value from a specified GPIO port.
BYTE JNMMGPIORead(int Port, int *data);
To read GPIO port.
inport = 0; //port A JNMMGPIORead(inport,&input_byte); printf("data = %d",*input_byte);
Last updated 4 years ago
Name
Description
Port
0 - for port A,
1 - for portB
data
read value.
Return Value
returns 1 or -1 on error