![]() |
Defines | |
#define | PHAT16CMASK 0xFFFF |
Functions | |
int | Phat16GetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t *link) |
Get link value of a specified cluster. | |
int | Phat16SetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t link) |
Set link value of a specified cluster. | |
int | Phat16ReleaseChain (NUTDEVICE *dev, uint32_t first) |
Release a cluster chain. |
#define PHAT16CMASK 0xFFFF |
Definition at line 58 of file phat16.h.
Referenced by AllocFirstCluster(), Phat16GetClusterLink(), Phat16ReleaseChain(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().
Get link value of a specified cluster.
dev | Specifies the file system device. | |
clust | Get the link of this cluster. | |
link | Pointer to a variable which will receive the link. |
Definition at line 103 of file phat16.c.
References PHAT16CMASK, PHATEOC, PhatSectorLoad(), PHATSECTBUF::sect_data, and PHATVOL::vol_buf.
Referenced by Phat16ReleaseChain(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().
Set link value of a specified cluster.
dev | Specifies the file system device. | |
clust | This cluster will be linked. | |
link | Link to this cluster. |
Definition at line 137 of file phat16.c.
References PhatSectorLoad(), PHATSECTBUF::sect_data, PHATSECTBUF::sect_dirty, PHATVOL::vol_buf, and PHATVOL::vol_tab_sect.
Referenced by AllocFirstCluster(), and Phat16ReleaseChain().
int Phat16ReleaseChain | ( | NUTDEVICE * | dev, | |
uint32_t | first | |||
) |
Release a cluster chain.
dev | Specifies the file system device. | |
first | First cluster of the chain to release. |
Definition at line 165 of file phat16.c.
References PHAT16CMASK, Phat16GetClusterLink(), Phat16SetClusterLink(), PHATEOC, and PHATVOL::vol_numfree.
Referenced by PhatDirReleaseChain().