CSD2X:SetDefaultFingerThresholds

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RyYo_1406951
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

CSD2X_SetDefaultFingerThresholds()について確認させてください。

モジュールデータシートを確認しますと、このAPIはスキャン前に呼び出さなければなりませんと記載があります。

■モジュールデータシート(API)
CSD2X_SetDefaultFingerThresholds()
Description:
Loads the CSD2X_baBtnFThreshold[] array with the FingerThreshold parameter value.
This function must be called prior to scanning if the CSD2X_baBtnFThreshold[] array is not manually loaded with custom values.

しかし、サンプルコードでは、
InitializeBaselines();の後にSetDefaultFingerThresholds();を呼び出しております。
InitializeBaselines();時にスキャンを実行していると思いますが、
スキャン(InitializeBaselines();)後、SetDefaultFingerThresholds();を呼び出していいのでしょうか。

■モジュールデータシート(Sample Firmware Source Code)
M8C_EnableGInt;
CSD2X_Start();
CSD2X_InitializeBaselines() ; //scan all sensors first time, init baseline
CSD2X_SetDefaultFingerThresholds() ;

0 Likes
1 Reply
Anonymous
Not applicable

正しいシーケンスは、サンプルコードの通りInitializeBaselines()の後にSetDefaultFingerThresholds()を呼び出すことです。

InitializeBaselines()は、すべてのセンサーをスキャンして、非タッチ時の生のカウントを取得し、ベースラインとして設定します。

以上、よろしくお願いいたします。

Nada

0 Likes