|
Synopsis
int sub_gpiob_config( sub_handle hndl, int set, int* get, int mask )
Configure GPIOB state (direction) as input or output.
Parameters
| • | set - Bits 0..7 of set parameter correspond to GPIOB0..GPIOB7 configuration bits. If GPIOBn configuration bit is "1" then GPIOBn direction is output, otherwise it is input. |
| • | *get - Pointer to store current GPIOB configuration 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 configuration. |
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
|
|