MT_StopWDT

■Description

Stop monitoring by the watchdog timer.

■Synopsis

MT_StopWDT(fd)

■Argument

fd
[C/C++] int
[Python] ctypes.c_int
Please specify handle acquired by MT_Open function.

■RETURN VALUE

[C/C++] int
[Python] ctypes.c_int
If the function succeeds, NO_ERROR is returned.
If the function fails, DRIVER_FAIL is returned.
The other errors : Error code details

■Sample Program Code

[C/C++]
  int fd;
  int ret;

  if ( (fd = MT_Open(NULL) ) < 0) {
    printf("Faild to open i2c port\n");
    return 1;
  }

  ret = MT_StopWDT(fd);
  if (ret != 0) {
      printf("MT_StopWDT error");
  }

  MT_Close(fd);
  
[Python]
  import mtdll_arm

  fd = mtdll_arm.MT_Open(None);

  ret = mtdll_arm.MT_StopWDT(fd);
  if ret != 0:
      printf("MT_StopWDT error");

  mtdll_arm.MT_Close(fd);
  



Function List