Knock
TO DO. More...
Protected Attributes
Type
Name
AnalogIn
Ticker
Thread *
float
float
bool
bool
bool
knock_stage_t
float
float
float
float
Callback< void(void)>
Public Functions
Type
Name
Knock (PinName acc_sda, PinName acc_scl, PinName mic)
~Knock ()
void
start ()
void
stop ()
int
read_raw_acc (float * val)
int
read_raw_mic (float * val)
int
set_acc_calibration (float offset, float coef)
int
set_mic_calibration (float offset, float coef)
void
attach_knock_detection (void(*)(void) function)
void
attach_knock_detection (T * object, void(T::*)(void) member)
Protected Functions
Detailed Description
description TO DO.
Protected Attributes Documentation
variable _acc
variable _mic
variable _tick
variable _thread
variable _acc_window
variable _mic_window
variable _state_mic
variable _state_acc
variable _state_both
variable _stage
variable _offset_acc
variable _offset_mic
variable _coef_acc
variable _coef_mic
variable _knock_callback
Public Functions Documentation
function Knock
function ~Knock
function start
function stop
function read_raw_acc
function read_raw_mic
function set_acc_calibration
function set_mic_calibration
function attach_knock_detection
function attach_knock_detection
Protected Functions Documentation
function thread_func
function find_maximum
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/Knock.h
Last updated