epg.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- #ifndef _EPG_H_
- #define _EPG_H_
- #include "gendef.h"
- #include "osp.h"
- #include "sipsi.h"
- #define KB_EPG_MAX_TS_NUM 20
- #define KB_EPG_MAX_SCH 10
- #define KB_EPG_MAX_PF 10
- typedef struct _KB_EPGDayInfo
- {
- INT32 nEventCount;
- KB_SIEitSchEvent *ptEvent;
- }KB_EPGDayInfo;
- typedef struct _KB_EPGSch
- {
- UINT32 nSvcID;
- UINT32 nState;
- UINT32 nEnable;
- KB_SIEitSch *pDataStruct;
- KB_EPGDayInfo nDayInfo[7];
- }KB_EPGSch;
- typedef struct _KB_EPGSchInfo
- {
- UINT32 nTsId;
- KB_EPGSch nSchInfo[KB_EPG_MAX_SCH];
- BOOL nCurrentTsTag;
- }KB_EPGSchInfo;
- typedef struct _KB_EpgPFInfo
- {
- UINT32 nTsId;
- UINT32 nSvcID;
- UINT32 nState;
- UINT32 nEnable;
- KB_SIEitPF *pPresent;
- KB_SIEitPF *pFollow;
- }KB_EpgPFInfo;
- typedef enum
- {
- EPG_MSG_PF_DONE,
- EPG_MSG_PF_TIMEOUT,
- EPG_MSG_PF_CHANGE,
- EPG_MSG_SCHEDULE_DONE,
- EPG_MSG_SCHEDULE_EVENT_DONE,
- EPG_MSG_SCHEDULE_SUNDAY_DONE,
- EPG_MSG_SCHEDULE_MONDAY_DONE,
- EPG_MSG_SCHEDULE_TUESDAY_DONE,
- EPG_MSG_SCHEDULE_WEDNESDAY_DONE,
- EPG_MSG_SCHEDULE_THURSDAY_DONE,
- EPG_MSG_SCHEDULE_FRIDAY_DONE,
- EPG_MSG_SCHEDULE_SATURDAY_DONE,
- EPG_MSG_SCHEDULE_TIMEOUT,
- EPG_MSG_MAX
- }KB_EpgMessage;
- typedef enum
- {
- EPG_Empty,
- EPG_Receiving,
- EPG_Recieved,
- EPG_Timeout
- }EPGSTATE;
- INT32 KB_EPGInit(void);
- INT32 KB_EPGCreate(void);
- INT32 KB_EPGDestroy(void);
- INT32 KB_EPGGetEITPF(UINT32 nSvcID);
- INT32 KB_EPGStopAllSCH(void);
- INT32 KB_EPGStopAllEITPF(void);
- UINT32 KB_EPGGetPrgSCH(unsigned short nPrgType,unsigned short i_nChannel);
- INT32 KB_EPGGetSch(UINT32 nTsId, INT32 nSvcCnt, UINT32 *pSvcID);
- KB_EPGDayInfo *KB_EPGGetSchInfo(UINT16 TsId, INT32 nSvcID, INT32 nWeekday);
- INT32 KB_EPGStopOneSrvSCH(UINT32 TsNum, UINT32 nSvcID);
- INT32 KB_EPGToNvod(INT32 nMute);
- void* KB_EPGGetMemAddress(void);
- INT32 KB_EPGHandleMsg(KB_OSPMsgNode *pInMsg);
- typedef void (*KB_EPGCallBackFunc)(KB_OSPMsgNode *pInMsg);
- KB_EPGCallBackFunc KB_EpgCallBack(KB_EPGCallBackFunc callback);
- UINT32 KB_EPG_GetCurrentTsNum(void);
- INT32 KB_EPG_SetCurrentTsNum(UINT32 TsId);
- UINT32 KB_EPG_GetTsNumFromTsId(UINT16 TsId);
- KB_EPGDayInfo *KD_EPGGetSCH(UINT32 TsNum, INT32 nSvcID, INT32 nWeekday);
- void KB_EPG_ResetSchInfoByTsid(UINT16 TsId);
- UINT32 KB_EPG_GetTsIdFromTsNum(UINT32 TsNum);
- UINT16 KB_EPG_GetCurrentTsid(void);
- #endif