sub_gpio_wdt_get

Top  Previous  Next
Got to SUB-20 page

Synopsis

int   sub_gpio_wdt_get( sub_handle hndl, int* pto_ms,

                         int* pdir_cfg, int* pout_cfg, unsigned char* pflags )

 

Read GPIO Watchdog settings and status.

Parameters

pto_ms - point to store GPIO Watchdog period in ms.

pdir_cfg - pointor to sotre idle state GPIO direction configuration bits.

out_cfg - pointer to store idle state GPIO output configuration bits.

pflags - pointer to store GPIO Watchdog status flags:

SUB_GPIO_WDT_EXPIRED

GPIO Watchdog got expired

SUB_GPIO_WDT_STOP

GPIO Watchdog is stopped

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