📄 dvb_ssu.h
字号:
#ifndef _DVB_SSU_H_
#define _DVB_SSU_H_
#include "ct_type.h"
#include "dvb_upd.h"
typedef void (*PF_DVB_SSU_CB)(u32);
typedef struct crd_struct_info
{
u8 au8Vender[16];
u8 au8Chip[8];
u8 au8ProductModel[16];
u8 au8Version[8];
#ifdef DBTOOL_ENABLE //Modified by WangTao 02/29/2008
u8 u8FileType;
u32 u32FileLength;
u8 u8StartBank;
u32 u32fileDataOffset ;
u8 u8DBType; //Only for DB
u8 u8DBVersion;
#else
u32 u32FileLength;
u32 u32fileDataOffset;
u8 u8StartBank;
u8 u8DummyByte;//For Alignment
u8 u8DummyByte2;//For Alignment
u8 u8DummyByte3;//For Alignment
#endif
}_Pack_Struct_ crd_struct_info;
typedef enum
{
EN_CRD_UPDATE_NO_ERROR = 1000,
EN_CRD_UPDATE_FILE_HANDLE_ERR,
EN_CRD_UPDATE_FILE_READ_ERR,
EN_CRD_UPDATE_CRC_CHECK_ERR,
EN_CRD_UPDATE_HEADER_CHECK_ERR,
EN_CRD_UPDATE_ERR
}EN_CRD_UPDATE_ERROR_TYPE;
#ifdef DBTOOL_ENABLE //Modified by WangTao 02/29/2008
void DVB_SSU_Init(void);
#else
void DVB_SSU_Init(u8 *pu8VenderName, u8* pu8ChipName);
#endif
EN_CRD_UPDATE_ERROR_TYPE DVB_SSU_UpdateByFS(u8 *pu8filename);
void DVB_SSU_SetProgressCallback(PF_DVB_SSU_CB pfSSUCallback);
u16* DVB_SSU_GetDirName(u32 u32FileIndex, u8 *pu8DirName);
u16* DVB_SSU_GetFileName(u32 u32FileIndex, u8 *pu8FileName);
u32 DVB_SSU_GetFileCount(void);
u32 DVB_SSU_GetDirCount(void);
EN_DVB_UPDATE_ERROR_TYPE DVB_SSU_UpdateByMem(u8 *pu8src,u32 u32size);
EN_CRD_UPDATE_ERROR_TYPE DVB_SSU_VerifyAndBurn(u32 u32size);
void DVB_SSU_Set_DeviceType(EN_DEVICE_TYPE enDeviceType);
EN_DEVICE_TYPE DVB_SSU_Get_DeviceType(void);
#endif//_DVB_SSU_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -