Defines data types and structures used by KFILE module.
============================================================================
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ============================================================================
#include <dsplink.h>
Go to the source code of this file.
Data Structures | |||||||||||||
struct | KFILE_Interface_tag | ||||||||||||
struct | KFileObject_tag | ||||||||||||
Typedefs | |||||||||||||
FileName | |||||||||||||
Definition for identifying files. ============================================================================ ============================================================================ | |||||||||||||
typedef Pstr | FileName | ||||||||||||
FnKfileOpen | |||||||||||||
Signature of the function for opening a handle to a KFILE file. ============================================================================
| |||||||||||||
typedef DSP_STATUS(* | FnKfileOpen )(IN CONST FileName fileName, IN CONST Char8 *mode, IN void **fileHandlePtr) | ||||||||||||
FnKfileClose | |||||||||||||
Signature of the function for closing a handle to a KFILE file. ============================================================================
| |||||||||||||
typedef DSP_STATUS(* | FnKfileClose )(IN void *fileHandle) | ||||||||||||
FnKfileRead | |||||||||||||
Signature of the function for reading from a KFILE file. ============================================================================
| |||||||||||||
typedef DSP_STATUS(* | FnKfileRead )(OUT Char8 *buffer, IN Uint32 size, IN Uint32 count, IN void *fileHandle) | ||||||||||||
FnKfileSeek | |||||||||||||
Signature of the function for repositioning the file pointer within a KFILE file. ============================================================================
| |||||||||||||
typedef DSP_STATUS(* | FnKfileSeek )(IN void *fileHandle, IN Int32 offset, IN KFILE_FileSeek origin) | ||||||||||||
FnKfileTell | |||||||||||||
Signature of the function for returning the current file pointer position within a KFILE file. ============================================================================
| |||||||||||||
typedef DSP_STATUS(* | FnKfileTell )(IN void *fileHandle, OUT Int32 *pos) | ||||||||||||
FnKfileGetSize | |||||||||||||
Signature of the function for returning the file size of the KFILE file. ============================================================================
| |||||||||||||
typedef void(* | FnKfileGetSize )(IN void *fileHandle, OUT Uint32 *size) | ||||||||||||
KFILE_Interface | |||||||||||||
Structure containing interface functions exported by the KFILE OSAL subcomponent. ============================================================================
| |||||||||||||
typedef struct KFILE_Interface_tag | KFILE_Interface | ||||||||||||
KFileObject | |||||||||||||
Definition of the KFILE object used by all KFILE functions. ============================================================================
| |||||||||||||
typedef struct KFileObject_tag | KFileObject | ||||||||||||
Enumerations | |||||||||||||
KFILE_Seek | |||||||||||||
Enumerates the values used for repositioning the file position indicator. ============================================================================
| |||||||||||||
enum | KFILE_FileSeek { KFILE_SeekSet = 0x00, KFILE_SeekCur = 0x01, KFILE_SeekEnd = 0x02 } |
typedef DSP_STATUS(* FnKfileOpen)(IN CONST FileName fileName, IN CONST Char8 *mode, IN void **fileHandlePtr) |
typedef DSP_STATUS(* FnKfileClose)(IN void *fileHandle) |
typedef DSP_STATUS(* FnKfileRead)(OUT Char8 *buffer, IN Uint32 size, IN Uint32 count, IN void *fileHandle) |
typedef DSP_STATUS(* FnKfileSeek)(IN void *fileHandle, IN Int32 offset, IN KFILE_FileSeek origin) |
typedef DSP_STATUS(* FnKfileTell)(IN void *fileHandle, OUT Int32 *pos) |
typedef void(* FnKfileGetSize)(IN void *fileHandle, OUT Uint32 *size) |
typedef struct KFILE_Interface_tag KFILE_Interface |
typedef struct KFileObject_tag KFileObject |
enum KFILE_FileSeek |