#ifndef _CEC_H_
#define _CEC_H_

#include <Windev.h>


/* max frame size */
#define CEC_MAX_FRAME_SIZE   16

#define CEC_MESSAGE_BROADCAST_MASK    0x0F
#define CEC_MESSAGE_BROADCAST         0x0F


#define FILE_DEVICE_CEC     40000

#define CEC_SET_LADDR       2048
#define CEC_SND_FRAME       2049
#define CEC_RCV_FRAME       2050

#define IOCTL_CEC_SET_LADDR CTL_CODE(FILE_DEVICE_CEC, CEC_SET_LADDR, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_CEC_SND_FRAME CTL_CODE(FILE_DEVICE_CEC, CEC_SND_FRAME, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_CEC_RCV_FRAME CTL_CODE(FILE_DEVICE_CEC, CEC_RCV_FRAME, METHOD_BUFFERED, FILE_ANY_ACCESS)

#endif // _CEC_H_
