Developer World
Spresense SDK Library v3.2.0-ebc0364
Functions
Collaboration diagram for Functions:

Classes

class  TapClass
 

Functions

TapClassTapCreate (void)
 Create TapClass instance. return Address for instance of TapClass.
 
int TapOpen (FAR TapClass *ins, FAR ST_TAP_OPEN *OpenParam)
 Set coefficients necessary for parameter initialization and tap detection. More...
 
int TapClose (FAR TapClass *ins)
 None. More...
 
int TapWrite (FAR TapClass *ins, FAR ST_TAP_ACCEL *accelData)
 Detect tap. More...
 
int TapWrite_timestamp (FAR TapClass *ins, FAR ST_TAP_ACCEL *accelData, uint64_t time_stamp)
 Detect tap. More...
 

Detailed Description

Function Documentation

◆ TapOpen()

int TapOpen ( FAR TapClass ins,
FAR ST_TAP_OPEN OpenParam 
)

Set coefficients necessary for parameter initialization and tap detection.

Parameters
[in]ins: instance address of TapClass
Returns
result of process.

◆ TapClose()

int TapClose ( FAR TapClass ins)

None.

Parameters
[in]ins: instance address of TapClass
Returns
D_SA_STATUS_OK

◆ TapWrite()

int TapWrite ( FAR TapClass ins,
FAR ST_TAP_ACCEL accelData 
)

Detect tap.

Parameters
[in]ins: instance address of TapClass
[in]accelData: Accel Data
Returns
tapcnt or error code

◆ TapWrite_timestamp()

int TapWrite_timestamp ( FAR TapClass ins,
FAR ST_TAP_ACCEL accelData,
uint64_t  time_stamp 
)

Detect tap.

Parameters
[in]ins: instance address of TapClass
[in]accelData: Accel Data
[in]time_stamp: Time Stamp
Returns
tapcnt or error code