Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
AD7714 Class Reference
AD7714クラス More...
#include <AD7714.h>
Inherited by RatioMetric7714.
Data Structures | |
| struct | CCh |
| 入力チャネルの指定 More... | |
| struct | CRegister |
| 内部レジスタを選択するための数値 More... | |
Public Member Functions | |
| void | write (int reg, int data) |
| 内部レジスタに値を書き込む | |
| int | read (int reg) |
| レジスタを読む | |
| int | writeByte (int txd) |
| バイトデータを書き込む | |
| AD7714 () | |
| コンストラクタ | |
| void | reset (void) |
| リセット | |
| void | calib (void) |
| ゼロとフルスケールのキャリブレーション | |
| bool | isBusy () |
| 変換中かどうかの判定 | |
| void | setCh (int ch) |
| 入力チャネルを指定する | |
| void | setFilter (int filter) |
| デジタルフィルタを設定する | |
| int | getValue () |
| 変換値を読み出す | |
Static Public Attributes | |
| static const int | FclkIn = 1000000 |
| AD7714へのクロック 1MHz. | |
| static const int | bits = 24 |
| 変換ビット長 | |
| static struct AD7714::CRegister | Reg |
| レジスタを指定するための構造体 | |
| static struct AD7714::CCh | Ch |
| 入力チャネルを指定するための構造体 | |
Detailed Description
AD7714クラス
AD7714の設定し運用する サーミスタ温度計に必要な機能を実装したものなので AD7714のすべての機能を制御することはできない
Definition at line 12 of file AD7714.h.
Constructor & Destructor Documentation
| AD7714 | ( | void | ) |
コンストラクタ
コンストラクタ
- PWMおよびSPIポートを初期化
- PWMはAD7714のマスタークロック1MHzを生成する
Definition at line 10 of file AD7714.cpp.
Member Function Documentation
| void calib | ( | void | ) |
ゼロとフルスケールのキャリブレーション
キャリブレーション チャネル、ゲイン、フィルタ周波数を変更したあと必ず実行せよ
Definition at line 47 of file AD7714.cpp.
| bool isBusy | ( | void | ) |
| int read | ( | int | reg ) |
レジスタを読む
レジスタの内容を読む
- Parameters:
-
reg レジスタを指定する値 Reg構造体のメンバー
- Returns:
- レジスタの内容
Definition at line 80 of file AD7714.cpp.
| void reset | ( | void | ) |
| void setFilter | ( | int | freq ) |
デジタルフィルタを設定する
フィルターノッチ周波数の設定(19Hz - 4000Hz)
- 周波数を上げると変換時間は短縮されるがノイズが増える
- 60に設定すると60Hzの電源ノイズのキャンセルに有効
- Parameters:
-
freq ノッチ周波数[Hz]
- Returns:
- なし
Definition at line 115 of file AD7714.cpp.
| void write | ( | int | reg, |
| int | data | ||
| ) |
内部レジスタに値を書き込む
指定レジスタに書き込む 指定レジスタが8bitか24bitがを判別して書き込む
- Parameters:
-
reg レジスタを指定する値 Reg構造体のメンバー data 書き込むデータ
- Returns:
- なし
Definition at line 98 of file AD7714.cpp.
| int writeByte | ( | int | txd ) |
Field Documentation
struct AD7714::CCh Ch [static] |
入力チャネルを指定するための構造体
struct AD7714::CRegister Reg [static] |
レジスタを指定するための構造体
Generated on Tue Jul 12 2022 19:08:10 by
1.7.2