sub_edge_read |
Top Previous Next |
Got to SUB-20 page |
Synopsis int sub_edge_read( sub_handle hndl, int* get, int* edge )
Read GPIO input status and EDGE status. For GPIO Function reads logic value "1"-high, "0"-low directly from GPIO pin. For EDGE function reads "1" - edge detected, "0" - edge not detected. Parameters •*get - Pointer to store received GPIO input status. Bits 0..31 of *get correspond to GPIO0..GPIO31 input statuses. •*edge - Pointer to store EDGE status. Bits 0..7 of *edge correspond to EDG0..EDG7. Return value On success function returns 0. Otherwise error code. See also |