ctr_mcu/trunk/pedometer.h
fujita_ryohei 9d24f9337c TS対応
・実機対応(TSと微妙に違うため)
・ifdefの誤り
 #ifdef A || B と書けないのはCの仕様らしい
 #if defined ( A || B ) は開発環境が対応してない
・製品検査用にインフォメーションが読めるように(0x7F~)
・フリーレジツタの追加
・


git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@99 013db118-44a6-b54f-8bf7-843cb86687b1
2010-03-19 09:36:25 +00:00

100 lines
1.4 KiB
C

#ifndef _pedo_
#define _pedo_
void hosu_read_end( );
u8 hosu_read( );
void fill_hosu_hist_hours( u16 );
void clear_hosu_hist();
// =========================================================
#define TAP 64
#define FIL_COEFF_QUANT 10
static const s8 lpf_coeff[]={
/*
Window Function Algorithm LPF
Sampling Frequency = 100.0
cutoff1 = 6.0000000
Tap Count =64
Kaiser Constant = 7.000000
Quantized by 11 [bits]
*/
/* 0,// [0]
0,
0,
0,
0,
0,
0,
0,
*/
1,// 8
2,
2,
3,
3,
2,
0,
-2,
-5,// 16
-9,
-13,
-16,
-16,
-13,
-6,
4,
18,// 24
37,
56,
77,
95,
110,
119,
122,
119,// 32
110,
95,
77,
56,
37,
18,
4,
-6,// 40
-13,
-16,
-16,
-13,
-9,
-5,
-2,
0,// 48
2,
3,
3,
2,
2,
1,
/*
0,
0,// 56
0,
0,
0,
0,
0,
0,
0
*/
};
// */
// =========================================================
void pedometer();
static void hosu_increment();
#endif