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

📄 dvb_cardreader.h

📁 DVB软件,基于CT216软件的开发源程序.
💻 H
字号:

#ifndef _DVB_CARDR_H_
#define _DVB_CARDR_H_
/*! \file
* This module provides the card reader and file system control API.
*
*/

#ifdef CT956
// [DECODER_SYTEM]
#define			DVD909_EVAL		        	1
#define     DVD909_HFY              2
#define     DVD909S_EVAL            3
#define     DVD909R_EVAL            4
#define     DVD909R_HFY             5
#define     STB219_HCN              6
#define     STB219_YHI              7
#define     DVD909P_A_EVAL          8    // for CT909P-A 128 pin platform.
#define     DVD909P_B_EVAL          9    // for CT909P-B 128 pin platform.
#define     DVD956A_DEV             10
#define     DMP952A_EVAL            11
#define     DVD909G_EVAL            12
#define     DMP956A_EVAL            13
#define     DMP955A_EVAL            14
#define     DMP952B_EVAL            15
#endif

#include "ct_type.h"

typedef enum
{
	EN_CARD_NOT_EXIST,
	EN_CARD_INSERT,
	//EN_CARD_ACTIVE
}EN_CARD_EXIST_STATUS;

EN_CARD_EXIST_STATUS DVB_CR_GetCardStatus(void);

void DVB_CR_SetCardStatus(EN_CARD_EXIST_STATUS enStatus);

bool8 DVB_CR_SetupSystem(void);

bool8 DVB_CR_InitCard(void);

bool8 DVB_CR_Protected(void);
/*! \fn bool8 DVB_CR_Protected(void)
\brief Check the card reader status of write protect.
\return This is the card reader write protect status. write free: 0, write protected: 1.
*/

bool8 DVB_CR_Read(u32 u32SectorIndex, u32 u8SectorLengths, u8 *pu8Buffer);
/*! \fn bool8 DVB_CR_Read(u32 u32SectorIndex, u8 u8SectorLengths, u8 *pu8Buffer)
\brief 
\param u32SectorIndex (Input) 
\param u8SectorLengths (Input) 
\param pu8Buffer (Input) 
\return 
*/

bool8 DVB_CR_Write(u32 u32SectorIndex, u32 u8SectorLengths, u8 *pu8Buffer);
/*! \fn bool8 DVB_CR_Write(u32 u32SectorIndex, u8 u8SectorLengths, u8 *pu8Buffer)
\brief 
\param u32SectorIndex (Input) 
\param u8SectorLengths (Input) 
\param pu8Buffer (Input) 
\return 
*/

void DVB_CR_GetSectorInfo(u32 *pu32TotalSectors, u32 *pu32SectorBytes);

#endif /* _DVB_CARDR_H_ */

⌨️ 快捷键说明

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