AW93015.h 613 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#ifndef __SOUND_IIC_H__
#define __SOUND_IIC_H__
/** SWDG *********************************************************************/

#define MAX_NUM    30


typedef void (*aw9310x_irq_init_t)(void(*)(void));

typedef struct {
    uint16_t Value_Filter[MAX_NUM]; 
		uint16_t MaxValue;
		uint16_t MinValue;
		uint16_t CurValue;
	  uint16_t AveValue; 
		uint32_t CumulativeSum;
		uint8_t MaxValuePtr;
		uint8_t MinValuePtr;
}PD_VALUE_FILTER_PARA;

extern PD_VALUE_FILTER_PARA PD1_Value;
extern PD_VALUE_FILTER_PARA PD2_Value;

extern void Init93015_IIC(void);
uint8_t GET_Key_Prosess(void);
#endif /* __SOUND_IIC_H__ */