MAV'RIC
Functions
test_fat_fs.c File Reference

Functions

int test_fat_fs_test (BYTE pdrv, UINT ncyc, DWORD *buff, UINT sz_buff)
 To test the low layer of the disk. More...
 
void test_fat_fs_low_layer (void)
 A function to test the low layer (read/write bytes to the SD card)
 
FRESULT test_fat_fs_open_append (FIL *fp, const char *path, BYTE opening_opt)
 Open the file path and seek the end to append. More...
 

Detailed Description

This file can be used to test the low and mid layer of writing to SD card for fat fs use.

Function Documentation

FRESULT test_fat_fs_open_append ( FIL fp,
const char *  path,
BYTE  opening_opt 
)

Open the file path and seek the end to append.

Parameters
fp[OUT] File object to create
path[IN] File name to be opened
opening_optThe opening file options
Returns
The result of the process, a FRESULT enum (defined in ff.h)
int test_fat_fs_test ( BYTE  pdrv,
UINT  ncyc,
DWORD *  buff,
UINT  sz_buff 
)

To test the low layer of the disk.

Parameters
pdrvPhysical drive number to be checked (all data on the drive will be lost)
ncycNumber of test cycles
buffPointer to the working buffer
sz_buffSize of the working buffer in unit of byte

Here is the call graph for this function:

Here is the caller graph for this function: