⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shal.c

📁 ST5518机顶盒系统文件系统源代码!绝对超值!
💻 C
字号:
/******************************************************************************    File Name   :     Description : ******************************************************************************//* Includes ---------------------------------------------------------------- */#ifndef STAVFS_HAL_SIMULATION#define STAVFS_HAL_SIMULATION#endif#include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <assert.h>#include "hal.h"#include "sttbx.h"/* Private Types ----------------------------------------------------------- *//* Private Constants ------------------------------------------------------- *//* Private Variables ------------------------------------------------------- *//* Private Macros ---------------------------------------------------------- *//* Private Function Prototypes --------------------------------------------- *//* Functions --------------------------------------------------------------- *//******************************************************************************Function Name : stavfs_HalDiskExist  Description : Does the specified volume exist in the physical world.   Parameters : ******************************************************************************/BOOL stavfs_SimHalDiskExist (stavfs_HAL_t *HALData){    return ((HALData->Protocol == 1) && ((HALData->UnitNumber == 0) || (HALData->UnitNumber == 1)));}/******************************************************************************Function Name : stavfs_HalInit  Description : Initialise the disk volume.   Parameters : The stavfs_HAL_t structure passed will be completed by the                initialisation and must be passed to subsequent calls.******************************************************************************/ST_ErrorCode_t stavfs_SimHalInit(stavfs_HAL_t *HALData){    return (ST_ERROR_FEATURE_NOT_SUPPORTED);}/******************************************************************************Function Name : stavfs_HalTerm  Description : Close the disk volume.   Parameters : The stavfs_HAL_t structure passed will be cleaned up and any                allocated space released. (The structure itself will not be freed.)******************************************************************************/ST_ErrorCode_t stavfs_SimHalTerm(stavfs_HAL_t *HALData){    return (ST_ERROR_FEATURE_NOT_SUPPORTED);}/******************************************************************************Function Name : stavfs_HalRead  Description : Read 'NbSectors' starting at 'FirstSector' into the buffer 'MemoryDestination'.   Parameters : The 'Streem' argument specifies whether the data should be streemed.                ie Whether CRC checking and re-reading is required.******************************************************************************/ST_ErrorCode_t stavfs_SimHalRead (stavfs_HAL_t *HALData, U64 *FirstSector, U32 NbSectors, char * MemoryDestination, BOOL Streem){    return (ST_ERROR_FEATURE_NOT_SUPPORTED);}/******************************************************************************Function Name : stavfs_HalWrite  Description : Write 'NbSectors' starting at 'FirstSector' from the buffer 'MemoryDestination'.   Parameters : The 'Streem' argument specifies whether the data should be streemed.                ie Whether CRC checking and re-writing is required.******************************************************************************/ST_ErrorCode_t stavfs_SimHalWrite (stavfs_HAL_t *HALData, U64 *FirstSector, U32 NbSectors, char const *MemoryDestination, BOOL Streem){    return (ST_ERROR_FEATURE_NOT_SUPPORTED);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -