capi/file.c File Reference

#include "file.h"
#include "type.h"
#include "ff.h"
#include "msg.h"
#include "io.h"
#include "sstr.h"
#include "ssd192X.h"
#include "diskio.h"
#include "system.h"
#include "config-flash.h"
#include "trace.h"
Include dependency graph for file.c:
This graph shows which files directly or indirectly include this file:

Functions

void ConsoleOut (UINT8 bIsMandatory, const char *str,...)
void DiskReadCallback (BYTE drv, BYTE *buff, DWORD sector, BYTE count)
void LoadFileToSSDMem (UINT32 addr, const char *fileName, UINT8 bDoBulk)
void PlayMJPEG (UINT32 videoAddr, UINT32 fifoAddr, const char *fileName, UINT32 fdelayMs)
FRESULT EnumDir (const char *path, UINT16 index, FILINFO *pfi)
void EnumDirToConsole (const char *path)
FRESULT OpenFile (FIL *pfl, const char *path, UINT8 mode)
FRESULT WriteFile (FIL *pfl, const void *pData, UINT32 len)
FRESULT ReadFile (FIL *pfl, const void *pData, UINT32 len, UINT8 bHex)
UINT8 StreamMJPEGFromUARTCB (UINT32 userdata, UINT32 offset, UINT16 w)
void StreamMJPEGFromUART (UINT32 videoAddr, UINT32 fifoAddr)

Variables

const UINT32 c_fifoBufferSize = 64*1024

Function Documentation

void ConsoleOut ( UINT8  bIsMandatory,
const char *  str,
  ... 
)

References funcprintfArp(), g_uartEchoOn, GetTermStatus(), TermSendChar(), and UART_SendChar().

Referenced by EnumDirToConsole(), Idle(), LoadFileToSSDMem(), main(), OpenFile(), PlayMJPEG(), ReadFile(), and WriteFile().

Here is the call graph for this function:

Here is the caller graph for this function:

void DiskReadCallback ( BYTE  drv,
BYTE buff,
DWORD  sector,
BYTE  count 
)
FRESULT EnumDir ( const char *  path,
UINT16  index,
FILINFO pfi 
)

References AM_DIR, AM_HID, AM_LFN, AM_SYS, AM_VOL, f_opendir(), f_readdir(), _FILINFO_::fattrib, _FILINFO_::fname, FR_NO_FILE, FR_OK, _FILINFO_::fsize, TRACE, TRACE1, and TRACE3.

Referenced by EnumDirToConsole().

Here is the call graph for this function:

Here is the caller graph for this function:

void EnumDirToConsole ( const char *  path  ) 

References ConsoleOut(), EnumDir(), _FILINFO_::fname, FR_OK, _FILINFO_::fsize, and offDirFormat.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LoadFileToSSDMem ( UINT32  addr,
const char *  fileName,
UINT8  bDoBulk 
)
FRESULT OpenFile ( FIL pfl,
const char *  path,
UINT8  mode 
)

References ConsoleOut(), f_open(), FR_OK, and offFopenFailed2.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void PlayMJPEG ( UINT32  videoAddr,
UINT32  fifoAddr,
const char *  fileName,
UINT32  fdelayMs 
)
FRESULT ReadFile ( FIL pfl,
const void *  pData,
UINT32  len,
UINT8  bHex 
)

References ConsoleOut(), f_read(), FR_OK, and offFreadFailed2.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamMJPEGFromUART ( UINT32  videoAddr,
UINT32  fifoAddr 
)

References c_fifoBufferSize, jpeg_codec_enable(), jpeg_codec_init(), JPEG_DECODE_BODY, jpeg_disable(), REG_DV_OFORMAT, SSD_REGWB, and WriteToSSDFromUART().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT8 StreamMJPEGFromUARTCB ( UINT32  userdata,
UINT32  offset,
UINT16  w 
)
FRESULT WriteFile ( FIL pfl,
const void *  pData,
UINT32  len 
)

References ConsoleOut(), f_write(), FR_OK, and offFwriteFailed.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const UINT32 c_fifoBufferSize = 64*1024

Referenced by StreamMJPEGFromUART().

Generated on Wed Mar 23 11:08:32 2011 for Omnima LCD by  doxygen 1.6.3