You are currently viewing the documentation for:
ECF_GetPartitionInfo
The ECF_GetPartitionInfo function returns information about a partition on a block device.
ECF_ErrorCode ECF_GetPartitionInfo(
   struct ECF_BlockDriver *pBlockDriver,
   uint8_t partitionNumber,
   uint8_t *pPartitionType,
   uint32_t *pStartSector,
   uint32_t *pPartitionSizeSectors
);
Parameters
pBlockDriver
This is a pointer to a struct ECF_BlockDriver of the disk for which you want the partition information.
partitionNumber
The number of the partition you wish to get info for. 1-4 are valid values.
pPartitionType
A pointer to a uint8_t that will receive the partition type
pStartSector
A pointer to a uint32_t that will receive the start sector of the partition.
pPartitionSizeSectors
A pointer to a uint32_t that will receive the size of the partition in sectors.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success) Returns ECFERR_NOPARTITION if the specified partition does not exist. Returns ECFERR_NOPARTITIONTABLE if a partition table does not exist.
Remarks
None.