ADCおよびその他の周辺機器用のベンダー固有のコードがあります。今それを使って、私は流れを理解しています。
ファイルの拡張子は.cppですが、そこにあるステートメントはC++ではなくCに似ています。つまり、coutの代わりにprintf()が使用されます。namespace.stdが定義されていません...それがc言語コードであることを確認した他のこともあります。(私を許してください、しかし私がベンダーに尋ねるものは何でも、しかし応答はそこからかなり遅いです)
つまり、これは完全なCコードです。しかし、理解しているうちに、クラスが定義されるようになり、今は本当に困惑しています。クラスを使っている人を見たり聞いたりしたことがないので
C4DSPBlast cBlast;
cBlast.GetBlastInfo();
ここで、C4DSPBlast cBlast;
次のコードは、C4DSPBlastがクラスであることを示しています。さて、デバッグ中に、まさにこのステートメントcBlast.GetBlastInfo()でエラーが発生していることがわかりました。しかし、Cのクラスがわからないので、デバッグをこれ以上進めないので、ここに投稿します。
class C4DSPBlast
{
public:
//! empty constructor.
C4DSPBlast(void);
//! empty destructor.
~C4DSPBlast(void);
//! Get BLAST information from the hardware(firmware).
/*!
* Read the BLAST information from an the PCI memory attached to the hardware device. This function populates internal class members with this information.
* @return CBLAST_IO_ERROR_BLAST_INFO_RD, CBLAST_NO_DEV_TYPE or CBLAST_SUCCESS if no errors.
*/
int GetBlastInfo(void);
//! m_valBLASTRegister the standard BLAST information register.
union { BLASTReg m_BLASTRegister; unsigned long m_val0; } m_valBLASTRegister;
//! m_valBLASTRegisterExt the extended BLAST information register.
union { BLASTReg m_BLASTRegisterExt; unsigned long m_val1; } m_valBLASTRegisterExt;
//! The whole BLAST information populated by GetBlastInfo() as a C data structure.
struct BOARD m_cBoard;
};