4.12 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 port B

data

read value.

Return Value

Error code or 0.

Usage Example

To read GPIO port.

inport=0;//port A

JNMMGPIORead(inport, &input_byte);
printf("data=%d",*input_byte);

Last updated