PHAT12 Support
[PHAT File System]

Collaboration diagram for PHAT12 Support:
PHAT12 specific routines. More...

Defines

#define PHAT12CMASK   0x0FFF

Functions

int Phat12GetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t *link)
 Get link value of a specified cluster.
int Phat12SetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t link)
 Set link value of a specified cluster.
int Phat12ReleaseChain (NUTDEVICE *dev, uint32_t first)
 Release a cluster chain.

Detailed Description

PHAT12 specific routines.


Define Documentation

#define PHAT12CMASK   0x0FFF

Definition at line 58 of file phat12.h.

Referenced by AllocFirstCluster(), Phat12GetClusterLink(), Phat12ReleaseChain(), Phat12SetClusterLink(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().


Function Documentation

int Phat12GetClusterLink ( NUTDEVICE dev,
uint32_t  clust,
uint32_t link 
)

Get link value of a specified cluster.

Parameters:
dev Specifies the file system device.
clust Get the link of this cluster.
link Pointer to a variable which will receive the link.
Returns:
0 on success or -1 on failure.

Definition at line 100 of file phat12.c.

References _NUTDEVICE::dev_dcb, PHAT12CMASK, PHATEOC, PhatSectorLoad(), PHATSECTBUF::sect_data, PHATVOL::vol_buf, and PHATVOL::vol_sectsz.

int Phat12SetClusterLink ( NUTDEVICE dev,
uint32_t  clust,
uint32_t  link 
)

Set link value of a specified cluster.

Parameters:
dev Specifies the file system device.
clust This cluster will be linked.
link Link to this cluster.
Returns:
0 on success or -1 on failure.

Definition at line 146 of file phat12.c.

References _NUTDEVICE::dev_dcb, PHAT12CMASK, PhatSectorLoad(), PHATSECTBUF::sect_data, PHATSECTBUF::sect_dirty, PHATVOL::vol_buf, PHATVOL::vol_sectsz, and PHATVOL::vol_tab_sect.

int Phat12ReleaseChain ( NUTDEVICE dev,
uint32_t  first 
)

Release a cluster chain.

Parameters:
dev Specifies the file system device.
first First cluster of the chain to release.
Returns:
0 on success or -1 on failure.

Definition at line 209 of file phat12.c.

References _NUTDEVICE::dev_dcb, PHAT12CMASK, Phat12GetClusterLink(), Phat12SetClusterLink(), PHATEOC, and PHATVOL::vol_numfree.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/