sub_gpio_wdt_set

Top  Previous  Next
Got to SUB-20 page

Synopsis

int   sub_gpio_wdt_set( sub_handle hndl, int to_ms, int dir_cfg, int out_cfg )

 

Configure GPIO Watchdog. Parameters dir_cfg and out_cfg define idle state of GPIO if GPIO Watchdog got expired.

Parameters

to_ms - GPIO Watchdog period in ms. GPIO Watchdog will be disabled if period is set to 0. The maximal value is 4000ms = 4s.

dir_cfg - GPIO direction configuration bits in idle state (similar to set parameter of the sub_gpio_config function).

out_cfg - GPIO output configuration bits in idle state (similar to set parameter of the sub_gpio_write function).

Return value

On success function returns 0. Otherwise error code.

See also

Error Codes

Compatibility

FW version

0.4.4 or grater

Library version

0.1.12.32 or grater