Skip to content

close_serialCloseSerialCloseSerialclose_serialT_close_serial🔗

説明🔗

close_serialCloseSerialCloseSerialclose_serialT_close_serial — シリアルデバイスを閉じる。

書式🔗

close_serial( serial SerialHandle )void CloseSerial( const HTuple& SerialHandle )static void HOperatorSet.CloseSerial( HTuple serialHandle )def close_serial( serial_handle: HHandle ) -> None

Herror T_close_serial( const Htuple SerialHandle )

void HSerial::CloseSerial( ) const

void HSerial.CloseSerial( )

説明🔗

close_serialCloseSerial は open_serialOpenSerial で開いたシリアルデバイ スを閉じます。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

このオペレータは以下の入力パラメータの状態を変更します :

このパラメータの値は外部同期なしには複数スレッド間で共有されません。

パラメーター🔗

SerialHandleserialHandleserial_handle (input_control, 状態が変更されました) serial → (handle)HTuple (HHandle)HSerial, HTuple (IntPtr)HHandleHtuple (handle)

シリアルインターフェースハンドル

結果🔗

パラメーターが正しく、デバイスを閉じることができた場合は、オペレー ター close_serialCloseSerial は、値 2 (H_MSG_TRUE) を返します。それ以外の場合に は例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_serialOpenSerial

関連項目

open_serialOpenSerial, close_fileCloseFile

モジュール🔗

Foundation