![]() |
File System Component
Version 6.0
MDK-Professional Middleware for Devices with Flash File System
|
Media support routines provide media management functions. More...
Functions | |
int32_t | fs_mc_read_cd (uint32_t drive_num) |
Callback function used to read Card Detect (CD) pin state when Memory Card is used in SPI mode. | |
int32_t | fs_mc_read_wp (uint32_t drive_num) |
Callback function used to read Write Protect (WP) pin state when Memory Card is used in SPI mode. | |
int32_t fs_mc_read_cd | ( | uint32_t | drive_num | ) |
[in] | drive_num | Memory Card Drive number |
The function fs_mc_read_cd returns memory card detection state. Application optionally implements this function and ensure proper drive_num mapping to Card Detect (CD) pin on the Memory Card socket.
The argument drive_num is specifying a Memory Card drive instance number.
Code Example
int32_t fs_mc_read_wp | ( | uint32_t | drive_num | ) |
[in] | drive_num | Memory Card Drive number |
The function fs_mc_read_wp returns memory card write protection state. Application optionally implements this function and ensure proper drive_num mapping to Write Protect (WP) pin on the Memory Card socket.
The argument drive_num is specifying a Memory Card drive instance number.