NHS31xx SW API
storage.h
1 /*
2  * Copyright 2016-2020 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __STORAGE_H_
13 #define __STORAGE_H_
14 
98 #include "board.h"
99 #include "storage_dft.h"
100 
101 /* ------------------------------------------------------------------------- */
102 
123 typedef int (*pStorage_CompressCb_t)(int eepromByteOffset, int bitCount, void * pOut);
124 
145 typedef int (*pStorage_DecompressCb_t)(const uint8_t * pData, int bitCount, void * pOut);
146 
147 /* ------------------------------------------------------------------------- */
148 
169 void Storage_Init(void);
170 
178 void Storage_DeInit(void);
179 
183 int Storage_GetCount(void);
184 
197 void Storage_Reset(bool checkFlash);
198 
214 int Storage_Write(STORAGE_TYPE * pSamples, int n);
215 
227 bool Storage_Seek(int n);
228 
245 int Storage_Read(STORAGE_TYPE * pSamples, int n);
246 
253 #endif
void Storage_Init(void)
#define STORAGE_TYPE
Definition: storage_dft.h:264
void Storage_DeInit(void)
int(* pStorage_CompressCb_t)(int eepromByteOffset, int bitCount, void *pOut)
Definition: storage.h:123
int Storage_GetCount(void)
int(* pStorage_DecompressCb_t)(const uint8_t *pData, int bitCount, void *pOut)
Definition: storage.h:145
int Storage_Read(uint8_t *pSamples, int n)
void Storage_Reset(bool checkFlash)
int Storage_Write(uint8_t *pSamples, int n)
bool Storage_Seek(int n)