#ifndef _CHANNEL_DICTIONARY_H
#define _CHANNEL_DICTIONARY_H
#include "sys.h"
//////////////////////////////////////////////////////////////////////////////
// 			2203/7/X GHz_ljw �ϲ���
//////////////////////////////////////////////////////////////////////////////
#define bwCtrlBit0  (0x1 << 0)
#define bwCtrlBit1 	(0x1 << 1)
#define bwCtrlBit2 	(0x1 << 2)
#define impCtrlBit 	(0x1 << 3)
#define lzDelayBit	(0x1 << 4)
#define hzDelayBit  (0x1 << 5)
#define acDcCtrlBit (0x1 << 6)
#define dsa2CsBit	(0x1 << 7)

//˥������
#define ATTLV1 5
#define ATTLV2 20

extern u8 dacPortInfoTable[4][5][3];
//dataType :0-ref,1-offset_lz,2-offset_hz,3-move_lz,4-move_hz
enum DacDataTypeIndex
{
	refCtrl = 0,
	offset_lz = 1,
	offset_hz = 2,
	move_lz = 3,
	move_hz = 4,
};

struct ParasDAC
{
	u8 high_low;
	u16 data;
	u8 channelId;
	u8 isBias;
};

struct Paras595
{
	u16 bandwidth;
	u8 high_low;
	u8 gain; 	//�Ŵ�
	u8 att;		//˥��
	u8 coupling; //���
	u8 exterHFRejection;
};
extern u8 bwCtrlWords[];
extern u8 coupleCtrl_4094[];
extern u32 GetDACConfigWord(struct ParasDAC params,u8* dac_index);
	
#endif
