Skip to content

File syn_fat.h

FileList > src > syntropic > storage > syn_fat.h

Go to the source code of this file

Custom lightweight FAT16/FAT32 VFS adapter.

  • #include "../drivers/syn_sd.h"
  • #include "syn_vfs.h"

Public Functions

Type Name
const SYN_VfsOps * syn_fat_get_ops (void)
Get the VFS operations structure for the custom FAT filesystem.
SYN_Status syn_fat_init (uint8_t spi_bus, SYN_GPIO_Pin cs)
Initialize the SD card and mount the FAT filesystem in VFS at /sd.

Public Functions Documentation

function syn_fat_get_ops

Get the VFS operations structure for the custom FAT filesystem.

const SYN_VfsOps * syn_fat_get_ops (
    void
) 

Returns:

Pointer to the static SYN_VfsOps vtable.


function syn_fat_init

Initialize the SD card and mount the FAT filesystem in VFS at /sd.

SYN_Status syn_fat_init (
    uint8_t spi_bus,
    SYN_GPIO_Pin cs
) 

Parameters:

  • spi_bus SPI bus index.
  • cs GPIO CS pin index.

Returns:

SYN_OK on success, SYN_ERROR on failure.



The documentation for this class was generated from the following file src/syntropic/storage/syn_fat.h