![]() |
Synergy Software Package User's Manual
|
FileX adaptation layer for block media device drivers. More...
Data Structures | |
| struct | sf_el_fx_media_partition_data_info_t |
| struct | sf_el_fx_media_mbr_info_t |
| struct | sf_el_fx_media_ebr_info_t |
| struct | sf_el_fx_media_boot_record_table_info_t |
| struct | sf_el_fx_media_global_open_info_t |
| struct | sf_el_fx_media_partition_info_t |
| struct | sf_el_fx_media_info_t |
| struct | sf_el_fx_callback_args_t |
| struct | sf_el_fx_config_t |
| struct | sf_el_fx_instance_ctrl_t |
| struct | sf_el_fx_t |
Macros | |
| #define | SF_EL_FX_API_VERSION_MAJOR (2) |
| #define | SF_EL_FX_CODE_VERSION_MAJOR (2U) |
| #define | SF_EL_FX_55AA_SIGNATURE_OFFSET (0x1FEU) |
| #define | SF_EL_FX_OPEN (0x4649584FU) |
Functions | |
| void | SF_EL_FX_BlockDriver (FX_MEDIA *p_fx_media) |
| Access Block Media device functions open, close, read, write and control. More... | |
FileX adaptation layer for block media device drivers.
SF_EL_FX FileX I/O is a single entry function which adapts FileX to Renesas Synergy block media device drivers.
SF_EL_FX Has no API file.
| #define SF_EL_FX_55AA_SIGNATURE_OFFSET (0x1FEU) |
SSP FileX Support.
| #define SF_EL_FX_API_VERSION_MAJOR (2) |
Version of the API defined in this file
| #define SF_EL_FX_CODE_VERSION_MAJOR (2U) |
Version of code that implements the API defined in this file
| #define SF_EL_FX_OPEN (0x4649584FU) |
"FIXO" in ASCII. Used to determine if the control block is open.
Media partition types
| void SF_EL_FX_BlockDriver | ( | FX_MEDIA * | p_fx_media | ) |
Access Block Media device functions open, close, read, write and control.
The file system relies on the media to be formatted prior to creating directories and files The sector size and sector count will change depending on the media type and size.
The File Allocation Table (FAT) starts after the reserved sectors in the media. The FAT area is basically an array of 12-bit, 16-bit, or 32-bit entries that determine if that cluster is allocated or part of a chain of clusters comprising a subdirectory or a file. The size of each FAT entry is determined by the number of clusters that need to be represented. If the number of clusters (derived from the total sectors divided by the sectors per cluster) is less than 4,086, 12-bit FAT entries are used. If the total number of clusters is greater than 4,086 and less than or equal to 65,525, 16-bit FAT entries are used. Otherwise, if the total number of clusters is greater than 65,525, 32-bit FAT entries are used. The SF_EL_FX_BlockDriver function is called from the FileX file system driver and issues requests to a Block Media device through the Synergy Block Media Interface. Uses block media driver for accesses.
| [in,out] | p_fx_media | FileX media control block. All information about each open media device are maintained in by the FX_MEDIA data type. The I/O driver communicates the success or failure of the request through the fx_media_driver_status member of FX_MEDIA (p_fx_media->fx_media_driver_status). Possible values are documented in the FileX User Guide. |
| none. |
Initialize FileX I/O status to error. It will change to FX_SUCCESS unless an operation fails.
Pass control to sf_el_fx_driver_request_handler, which is responsible for setting FX_MEDIA::fx_media_driver_status in-case of any failure.