1/*
2 $License:
3    Copyright (C) 2011 InvenSense Corporation, All Rights Reserved.
4 $
5 */
6
7/*******************************************************************************
8 *
9 * $Id: ml_stored_data.h 5873 2011-08-11 03:13:48Z mcaramello $
10 *
11 ******************************************************************************/
12
13#ifndef INV_MPL_STORED_DATA_H
14#define INV_MPL_STORED_DATA_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/*
21    Includes.
22*/
23#include "mltypes.h"
24
25/*
26    Defines
27*/
28#define MLCAL_FILE "/data/inv_cal_data.bin"
29
30/*
31    APIs
32*/
33inv_error_t inv_load_calibration(void);
34inv_error_t inv_store_calibration(void);
35
36/*
37    Internal APIs
38*/
39inv_error_t inv_read_cal(unsigned char **, size_t *);
40inv_error_t inv_write_cal(unsigned char *cal, size_t len);
41inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len);
42inv_error_t inv_load_cal_V1(unsigned char *calData, size_t len);
43
44/*
45    Other prototypes
46*/
47inv_error_t inv_load_cal(unsigned char *calData);
48inv_error_t inv_store_cal(unsigned char *calData, size_t length);
49
50#ifdef __cplusplus
51}
52#endif
53#endif  /* INV_MPL_STORED_DATA_H */
54