Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The storage layer port must implement the API functions summarized in Table - Storage API Functions. You can start by referencing to the storage port template located under:

...

Please refer to the MSC Storage Layer Functions Reference for a full description of the storage layer API.

Anchor
Table - Storage API Functions
Table - Storage API Functions

Panel
borderWidth0
titleTable - Storage API Functions


Function NameOperation
USBD_StorageInit()Initializes internal tables used by the storage layer.
USBD_StorageAdd()Initializes storage medium.
USBD_StorageCapacityGet()Gets the storage medium’s capacity.
USBD_StorageRd()Reads data from the storage medium.
USBD_StorageWr()Writes data to the storage medium.
USBD_StorageStatusGet()Gets storage medium’s status. If the storage medium is a removable device such as an SD/MMC card, this function will return if the storage is inserted or removed.
USBD_StorageLock()Locks access to the storage medium.
USBD_StorageUnlock()Unlocks access to the storage medium.
USBD_StorageRefreshTaskHandler()Checks the removable media presence status, that is insertion/removal detection. Defined only for the µC/FS storage layer.