MT_StopWDT

■機能

ウォッチドッグタイマによる監視を停止します。

■書式

MT_StopWDT(fd)

■引数

fd
[C/C++] int
[Python] ctypes.c_int
MT_Open関数で取得したハンドルを指定してください。

■戻り値

[C/C++] int
[Python] ctypes.c_int
関数が成功した場合、NO_ERRORが返されます。
関数が失敗した場合、NO_ERROR以外のコードが返されます。
その他のエラー:(参照:エラーコード詳細)

■サンプルプログラム

[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);
  



関数一覧