1 /****************************************************************************** 2 * $Id: AKFS_AOC.h 580 2012-03-29 09:56:21Z yamada.rj $ 3 ****************************************************************************** 4 * 5 * Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 #ifndef AKFS_INC_AOC_H 20 #define AKFS_INC_AOC_H 21 22 #include "AKFS_Device.h" 23 24 /***** Constant definition ****************************************************/ 25 #define AKFS_HBUF_SIZE 20 26 #define AKFS_HOBUF_SIZE 4 27 #define AKFS_HR_TH 10 28 #define AKFS_HO_TH 0.15 29 30 /***** Macro definition *******************************************************/ 31 32 /***** Type declaration *******************************************************/ 33 typedef struct _AKFS_AOC_VAR{ 34 AKFVEC hbuf[AKFS_HBUF_SIZE]; 35 AKFVEC hobuf[AKFS_HOBUF_SIZE]; 36 AKFLOAT hraoc; 37 } AKFS_AOC_VAR; 38 39 /***** Prototype of function **************************************************/ 40 AKLIB_C_API_START 41 int16 AKFS_AOC( 42 AKFS_AOC_VAR* haocv, 43 const AKFVEC* hdata, 44 AKFVEC* ho 45 ); 46 47 void AKFS_InitAOC( 48 AKFS_AOC_VAR* haocv 49 ); 50 51 AKLIB_C_API_END 52 53 #endif 54 55