weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Structures | Defines | Functions | Variables
include/we-aut_sys/smc2fs.h File Reference

Overview

weAutSys' file system adaption to a small memory card

This file contains the definitions for weAutSys' adaption of ChaN's fatFS to the (low level) services to communicate with a small memory card (SMC) via SPI.

This is system software and must not be modified for user or application programs.

This file is part of weAutSys   <weinert-automation.de>

  Copyright © 2012 Albrecht Weinert, Bochum

Author:
Albrecht Weinert   <a-weinert.de>
Revision:
2
Date:
2017-01-25 17:49:03 +0100 (Mi, 25 Jan 2017)

Data Structures

struct  FS_WORK
 Work space for file system operations (structure FS_WORK) More...

Defines

#define fMountSMC()
 Mount / initialise the SMC file system as drive 0.
#define lockFsWorkFor(ls)
 Set the lock on fsWork.
#define SMC_FS_CLIUSE   0xCB
 SMC file system (structure) locked for (application) CLI.
#define SMC_FS_SYSTUSE   0xFB
 SMC file system (structure) locked for runtime / system use.
#define unlockFsWorkFrom(ls)
 Unset the lock on fsWork.

Functions

char * formFATdate (char *s, uint16_t fatDate)
 Format a FAT date.
char * formFATtime (char *s, uint16_t fatTime)
 Format a FAT time.
uint8_t stdPutFilInf (FILINFO *filInf, const uint8_t inf)
 Write file info data to standard output.

Variables

FATFS fileSystSMC
 File system object (the one for SMC)
FS_WORK fsWork
 Work space for file system operations.