📄 polaris_reg.h
字号:
#ifndef _POLARIS_REG_H_
#define _POLARIS_REG_H_
#define BOARD_CFG_STAT 0x0
#define TS_MODE_REG 0x4
#define TS1_CFG_REG 0x8
#define TS1_LENGTH_REG 0xc
#define TS2_CFG_REG 0x10
#define TS2_LENGTH_REG 0x14
#define EP_MODE_SET 0x18
#define CIR_PWR_PTN1 0x1c
#define CIR_PWR_PTN2 0x20
#define CIR_PWR_PTN3 0x24
#define CIR_PWR_MASK0 0x28
#define CIR_PWR_MASK1 0x2c
#define CIR_PWR_MASK2 0x30
#define CIR_GAIN 0x34
#define CIR_CAR_REG 0x38
#define CIR_OT_CFG1 0x40
#define CIR_OT_CFG2 0x44
#define PWR_CTL_EN 0x74 //T0 doesn't have this register.
//Polaris Endpoints capture mask for register EP_MODE_SET
#define ENABLE_EP1 0x01 //Bit[0]=1
#define ENABLE_EP2 0x02 //Bit[1]=1
#define ENABLE_EP3 0x04 //Bit[2]=1
#define ENABLE_EP4 0x08 //Bit[3]=1
#define ENABLE_EP5 0x10 //Bit[4]=1
#define ENABLE_EP6 0x20 //Bit[5]=1
//Bit definition for register PWR_CTL_EN
#define PWR_MODE_MASK 0x17e
#define PWR_AV_EN 0x08 //bit3
#define PWR_ISO_EN 0x40 //bit6
#define PWR_AV_MODE 0x30 //bit4,5
#define PWR_TUNER_EN 0x04 //bit2
#define PWR_DEMOD_EN 0x02 //bit1
#define I2C_DEMOD_EN 0x01 //bit0
#define PWR_RESETOUT_EN 0x100 //bit8
typedef enum{
POLARIS_AVMODE_DEFAULT = 0,
POLARIS_AVMODE_DIGITAL = 0x10,
POLARIS_AVMODE_ANALOGT_TV = 0x20,
POLARIS_AVMODE_ENXTERNAL_AV = 0x30,
}AV_MODE;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -