nmtrap.h 1.41 KB
#ifndef __TV_nmtrap_h_
#define __TV_nmtrap_h_

/*
** nmtrap.h
**
** Interface to send Network Management Trap
*/

#ifdef __cplusplus
extern "C" {
#endif

/*
** hctSystem Trap
*/
#define TV_HCTCOLDSTART		101
#define TV_HCTSHUTDOWN		102
#define TV_HCTHARDWAREFAILURE	103
#define TV_HCTSOFTWAREFAILURE	104

#define TV_HARDERRFORWARDAPP	2
#define TV_HARDERRFORWARDCTR	3
#define TV_HARDERRAUDIODECOMP	6
#define TV_HARDERRVIDEODECOMP	7
#define TV_HARDERRCTRMICRO	8
#define TV_HCT8600FSNDISABLED	9
#define TV_HCT8600FSNTIMEDOUT	10
#define TV_HCT8600FSNTAMPER	11

/*
** hctAppMan Trap
*/
#define TV_HCTSTARTAPP		401
#define TV_HCTABORTAPP		402

#define TV_MNTRAP_MAXDATALEN	(32 - sizeof(TVushort)*4) /* 24 bytes */

typedef union TVNMTrapMsgStr {
    struct {
        TVushort type;
        TVushort len;
        TVushort module;
        TVushort trapType;
        TVuchar trapData[TV_MNTRAP_MAXDATALEN];
    } msg;
    TVMessage notused;
} TVNMTrapMsg;

int tvNmSendTrap(TVushort module, TVushort trapType, TVushort len,
                   TVuchar *data);
int tvNmHdwTrap(TVulong trapCode);
int tvNmSftTrap(TVulong trapCode);

typedef union TVNMRetuneMsgStr {
    struct {
	TVushort type;
	TVushort tuner;
	TVulong  frequency;
    } msg;
    struct {
	TVushort type;
	int      reply;
    } msgreply;
    TVMessage notused;
} TVNMRetuneMsg;

int tvNmRetune(TVushort tuner, TVulong frequency);

#ifdef __cplusplus
}
#endif

#endif /* __TV_nmtrap_h_ */