ARCS6 AR6-REV.24062600
読み取り中…
検索中…
一致する文字列を見つけられません
PCI-3343A.hh
[詳解]
1
7//
8// Copyright (C) 2011-2020 Yokokura, Yuki
9// This program is free software;
10// you can redistribute it and/or modify it under the terms of the BSD License.
11// For details, see the License.txt file.
12
13#ifndef PCI_3343A
14#define PCI_3343A
15
16namespace ARCS {
19 class PCI3343A {
20 public:
21 explicit PCI3343A(unsigned int Addr);
22 PCI3343A(unsigned int Addr, uint8_t EnableCh);
23 PCI3343A();
24 ~PCI3343A();
25 void SetVoltage(double V1, double V2, double V3, double V4);
27
28 private:
29 PCI3343A(const PCI3343A&) = delete;
30 const PCI3343A& operator=(const PCI3343A&) = delete;
31
32 const unsigned int ADDR_BASE;
33 const unsigned int ADDR_DACDATA_LO;
34 const unsigned int ADDR_DACDATA_HI;
35 const unsigned int ADDR_CHSET;
36 const unsigned int ADDR_CONVMODE;
37 const unsigned int ADDR_OUTMODE;
38 const unsigned int ADDR_DIO;
39 uint8_t ENA;
40
41 void SetAllEnable(bool flag); // 全チャネル同時出力イネーブル
42 void SetOutEnable(bool flag); // 全チャネル出力有効 flag = true で電圧出力,flag = false でハイインピーダンス
43 void ExecOutput(void); // 全チャネル同時出力実行(電圧更新)
44 void SelectCH(unsigned int ch); // チャネル選択
45 void SetDACdata(uint16_t data); // DACデータをセットする関数
46 void SetAllZero(void); // 全チャネル零電圧出力
47 static uint16_t VoltToDacData(double Vout); // DAC出力電圧[V]からDACの実際の整数値に変換する関数
48 static uint8_t Get2byteHi(uint16_t in); // 2byteデータの上位1byteを抽出して出力
49 static uint8_t Get2byteLo(uint16_t in); // 2byteデータの下位1byteを抽出して出力
50 };
51}
52
53#endif
PCI-3343A入出力クラス Interface社製PCI-3343Aのための入出力機能を提供します。
Definition PCI-3343A.hh:19
~PCI3343A()
デストラクタ
Definition PCI-3343A.cc:77
void SetVoltage(double V1, double V2, double V3, double V4)
指定した電圧を出力する関数
Definition PCI-3343A.cc:86
PCI3343A()
空コンストラクタ
Definition PCI-3343A.cc:63