sub_gpiob_write

Top  Previous  Next
Got to SUB-20 page

Synopsis

int   sub_gpiob_write( sub_handle hndl, int set, int* get, int mask )

 

Set GPIOB output status. For GPIOB in output state function will set output driver to drive "1"-high, "0"-low. For GPIO in input state function will "1"-enable, "0"-disable weak pull-up on corresponding GPIOB pin.

Parameters

set - Bits 0..7 of set parameter correspond to GPIOB0..GPIOB7 output statuses.

*get - Pointer to store current GPIOB output status read from SUB-20.

mask - Bit in set parameter will take effect only if corresponding mask bit is "1". With mask=0 function will only read current GPIOB output status.

Return value

On success function returns 0. Otherwise error code.

See also

Error Codes

Compatibility

FW version

0.2.7 or grater

Library version

0.1.12.17 or grater