![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
CyverseのUSB2.0(LDR-SPIDAR-AMP)のドライバ
#include <DRUsb20Simple.h>

構成 | |
| class | Counter |
| 仮想デバイス(Counter) [詳細] | |
| class | Da |
| 仮想デバイス(DA) [詳細] | |
| class | Pio |
| 仮想デバイス(Pio) [詳細] | |
Public メソッド | |
| SPR_OBJECTDEF (DRUsb20Simple) | |
| DRUsb20Simple (const DRUsb20SimpleDesc &d=DRUsb20SimpleDesc()) | |
| コンストラクタ chは背面のスイッチになる予定 | |
| virtual bool | Init () |
| 初期化 | |
| void | WriteVoltage (int ch, float v) |
| 初期化(チャンネル, PIDVIDを気にせずに初期化) [詳細] | |
| void | WriteDigit (int ch, int v) |
| 電圧出力(数値指定) | |
| void | WriteCount (int ch, long c) |
| カウンタ値の設定 | |
| long | ReadCount (int ch) |
| カウンタ値の読み出し | |
| virtual void | Update () |
| 状態の更新 | |
| void | WritePio (int ch, bool level) |
| PIOポートの設定 | |
| bool | ReadPio (int ch) |
| PIOポートの読み出し | |
| int | ReadRotarySwitch () |
| スイッチ(ポートの上位5-8ビット)の読み出し | |
| virtual void | Reset () |
| リセット | |
| void * | GetHandle () |
| USBのファイルハンドル | |
Public メソッド inherited from HIRealDevice | |
| SPR_OBJECTDEF_ABST (HIRealDevice) | |
| virtual HIVirtualDeviceIf * | Rent (const IfInfo *ii, const char *name, int portNo) |
| 仮想デバイスの作成 | |
| virtual bool | Return (HIVirtualDeviceIf *dv) |
| 仮想デバイスの返却 | |
| virtual bool | AddChildObject (ObjectIf *o) |
| ダンプ出力 | |
| virtual ObjectIf * | GetChildObject (size_t i) |
| 子オブジェクトの取得 | |
| virtual size_t | NChildObject () const |
| 子オブジェクトの数 | |
Public メソッド inherited from HIDevice | |
| SPR_OBJECTDEF_ABST (HIDevice) | |
Public メソッド inherited from NamedObject | |
| NamedObject (const NamedObject &n) | |
| NamedObject & | operator= (const NamedObject &n) |
| virtual const char * | GetName () const |
| 名前の取得 | |
| virtual void | SetName (const char *n) |
| 名前の設定 | |
| virtual void | SetNameManager (NameManagerIf *s) |
| NameManagerを設定 | |
| virtual NameManagerIf * | GetNameManager () const |
| NameManagerの取得 | |
Public メソッド inherited from Object | |
| SPR_OBJECTDEF (Object) | |
| クラス名の取得などの基本機能の実装 | |
| ObjectIf * | GetObjectIf () |
| const ObjectIf * | GetObjectIf () const |
| virtual void | Print (std::ostream &os) const |
| デバッグ用の表示 | |
| virtual void | PrintShort (std::ostream &os) const |
| virtual ObjectIf * | CreateObject (const IfInfo *info, const void *desc) |
| オブジェクトの作成 | |
| virtual const ObjectIf * | GetChildObject (size_t pos) const |
| virtual bool | DelChildObject (ObjectIf *o) |
| 子オブジェクトの削除 | |
| virtual void | Clear () |
| すべての子オブジェクトの削除とプロパティのクリア | |
| virtual void | Loaded (UTLoadContext *) |
| ファイルロード後に一度呼ばれる。ノードの設定に使う。 呼び出し順序に依存する処理がしたい場合は、UTLoadHandeler と UTLoadTask を使うと良い。 | |
| virtual void | Setup () |
| ノードの設定をするための関数 | |
| virtual bool | GetDesc (void *desc) const |
| デスクリプタの読み出し(コピー版) | |
| virtual void | SetDesc (const void *desc) |
| デスクリプタの設定 | |
| virtual const void * | GetDescAddress () const |
| デスクリプタの読み出し(参照版) | |
| virtual size_t | GetDescSize () const |
| デスクリプタのサイズ | |
| virtual bool | GetState (void *state) const |
| 状態の読み出し(コピー版) | |
| virtual const void * | GetStateAddress () const |
| 状態の読み出し(参照版) | |
| virtual void | GetStateR (char *&state) |
| 状態の再帰的な読み出し | |
| virtual void | SetState (const void *state) |
| 状態の設定 | |
| virtual void | SetStateR (const char *&state) |
| 状態の再帰的な設定 | |
| virtual bool | WriteStateR (std::ostream &fout) |
| 状態のファイルへの書き出し | |
| virtual bool | WriteState (std::string fileName) |
| virtual bool | ReadStateR (std::istream &fin) |
| 状態の読み込み | |
| virtual bool | ReadState (std::string fileName) |
| virtual size_t | GetStateSize () const |
| 状態のサイズ | |
| virtual void | ConstructState (void *m) const |
| メモリブロックを状態型に初期化 | |
| virtual void | DestructState (void *m) const |
| 状態型をメモリブロックに戻す | |
| virtual void | DumpObjectR (std::ostream &os, int level=0) const |
| メモリデバッグ用。単純にツリーのオブジェクトをファイルにダンプする。 | |
Public 変数 | |
| SPR_DECLMEMBEROF_DRUsb20SimpleDesc | |
Public 変数 inherited from HIRealDevice | |
|
std::vector< UTRef < HIVirtualDevice > > | dvPool |
| 提供する仮想デバイスの配列 | |
Protected メソッド | |
| int | FindDevice (int ch=-1) |
| virtual const char * | BaseName () const |
| virtual unsigned | GetVidPid () |
| virtual void | UsbReset () |
| virtual void | UsbCounterGet () |
| virtual void | UsbCounterClear () |
| virtual void | UsbDaSet () |
| virtual unsigned | UsbVidPid (void *h) |
| virtual void * | UsbOpen (int id) |
| virtual bool | UsbClose (void *&h) |
Protected メソッド inherited from NamedObject | |
| virtual void | PrintHeader (std::ostream &os, bool bClose) const |
| 開き括弧 | |
Protected メソッド inherited from Object | |
| virtual void | PrintChildren (std::ostream &os) const |
| 子オブジェクトをPrint | |
| virtual void | PrintFooter (std::ostream &os) const |
| 閉じ括弧 | |
| virtual void | BeforeGetDesc () const |
| GetDesc()の前に呼ばれる | |
| virtual void | AfterSetDesc () |
| SetDesc()のあとに呼ばれる | |
Protected 変数 | |
| void * | hSpidar |
| int | sign [8] |
| long | count [8] |
| long | countOffset [8] |
| int | daOut [8] |
| int | adIn [8] |
| int | pioLevel [16] |
Protected 変数 inherited from NamedObject | |
| UTString | name |
| 名前 | |
| NameManager * | nameManager |
| 名前の検索や重複管理をするもの.SceneやSDKなど. | |
Additional Inherited Members | |
Static Protected メソッド inherited from Object | |
| static void | ConstructState (ObjectIf *o, char *&s) |
| sをoのStateとして初期化する. | |
| static void | DestructState (ObjectIf *o, char *&s) |
| sをoのStateからメモリブロックに戻す. | |
| void WriteVoltage | ( | int | ch, |
| float | v | ||
| ) |
仮想デバイスの登録 電圧出力