![]() |
Synergy Software Package User's Manual
|
#include <sf_block_media_api.h>
Data Fields | |
| ssp_err_t(* | open )(sf_block_media_ctrl_t *p_ctrl, sf_block_media_cfg_t const *const p_cfg) |
| ssp_err_t(* | read )(sf_block_media_ctrl_t *p_ctrl, uint8_t *const p_dest, uint32_t const start_sector, uint32_t const sector_count) |
| ssp_err_t(* | write )(sf_block_media_ctrl_t *p_ctrl, uint8_t const *const p_src, uint32_t const start_sector, uint32_t const sector_count) |
| ssp_err_t(* | ioctl )(sf_block_media_ctrl_t *p_ctrl, ssp_command_t const command, void *p_data) |
| ssp_err_t(* | close )(sf_block_media_ctrl_t *p_ctrl) |
| ssp_err_t(* | versionGet )(ssp_version_t *const p_version) |
Shared Interface definition for Block Media
| ssp_err_t(* sf_block_media_api_t::close) (sf_block_media_ctrl_t *p_ctrl) |
Close the open media channel.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| ssp_err_t(* sf_block_media_api_t::ioctl) (sf_block_media_ctrl_t *p_ctrl, ssp_command_t const command, void *p_data) |
Send control commands to and receives the status from the media port.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| [in] | command | Command to execute. |
| [in,out] | p_data | Void pointer to data in or out. |
| ssp_err_t(* sf_block_media_api_t::open) (sf_block_media_ctrl_t *p_ctrl, sf_block_media_cfg_t const *const p_cfg) |
Open a device channel for read/write and control.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| ssp_err_t(* sf_block_media_api_t::read) (sf_block_media_ctrl_t *p_ctrl, uint8_t *const p_dest, uint32_t const start_sector, uint32_t const sector_count) |
Read data from a media channel.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| [in] | p_dest | Destination address to read data out. |
| [in] | start_sector | Beginning sector address to read. |
| [in] | sector_count | Number of sectors to read. |
| ssp_err_t(* sf_block_media_api_t::versionGet) (ssp_version_t *const p_version) |
Return the version of the driver.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| [out] | p_version | Memory address to return version information to. |
| ssp_err_t(* sf_block_media_api_t::write) (sf_block_media_ctrl_t *p_ctrl, uint8_t const *const p_src, uint32_t const start_sector, uint32_t const sector_count) |
Write data to a media channel.
| [in] | p_cfg | Pointer to the media configuration structure for a channel. |
| [in] | p_src | Source address of data for writing. |
| [in] | start_sector | Beginning sector address to write to. |
| [in] | sector_count | Number of sectors to write. |