5.9 JNMMGPIORead

This function reads the data value from a specified GPIO port.

BYTE JNMMGPIORead(int Port, int *data);

Name

Description

Port

0 - for port A,

1 - for portB

data

read value.

Return Value

returns 1 or -1 on error

Usage Example

To read GPIO port.

inport = 0;          //port A
JNMMGPIORead(inport,&input_byte);
printf("data = %d",*input_byte);

Last updated