sub_gpio_read

Top  Previous  Next
Got to SUB-20 page

Synopsis

int   sub_gpio_read( sub_handle hndl, int* get )

 

Read GPIO input status. Function reads logic value "1"-high, "0"-low directly from GPIO pin.

Parameters

*get - Pointer to store received GPIO input status. Bits 0..31 of *get correspond to GPIO0..GPIO31 input statuses.

Return value

On success function returns 0. Otherwise error code.

See also

Error Codes