dRonin
adbada4
dRonin firmware
|
Driver for MAX7456 OSD. More...
Enumerations | |
enum | pios_max7456_reg { MAX7456_REG_VM0 = 0x00, MAX7456_REG_VM1 = 0x01, MAX7456_REG_HOS = 0x02, MAX7456_REG_VOS = 0x03, MAX7456_REG_DMM = 0x04, MAX7456_REG_DMAH = 0x05, MAX7456_REG_DMAL = 0x06, MAX7456_REG_DMDI = 0x07, MAX7456_REG_CMM = 0x08, MAX7456_REG_CMAH = 0x09, MAX7456_REG_CMAL = 0x0A, MAX7456_REG_CMDI = 0x0B, MAX7456_REG_OSDM = 0x0C, MAX7456_REG_RB0 = 0x10, MAX7456_REG_RB1 = 0x11, MAX7456_REG_RB2 = 0x12, MAX7456_REG_RB3 = 0x13, MAX7456_REG_RB4 = 0x14, MAX7456_REG_RB5 = 0x15, MAX7456_REG_RB6 = 0x16, MAX7456_REG_RB7 = 0x17, MAX7456_REG_RB8 = 0x18, MAX7456_REG_RB9 = 0x19, MAX7456_REG_RB10 = 0x1A, MAX7456_REG_RB11 = 0x1B, MAX7456_REG_RB12 = 0x1C, MAX7456_REG_RB13 = 0x1D, MAX7456_REG_RB14 = 0x1E, MAX7456_REG_RB15 = 0x1F, MAX7456_REG_STAT = 0x20, MAX7456_REG_DMDO = 0x30, MAX7456_REG_CMDO = 0x40, MAX7456_REG_OSDBL = 0x6C } |
Driver for MAX7456 OSD.
#define MAX7456_CMM_READ_NVM 0x50 |
Definition at line 198 of file pios_max7456_priv.h.
#define MAX7456_CMM_WRITE_NVM 0xa0 |
Definition at line 195 of file pios_max7456_priv.h.
#define MAX7456_DMDI_AUTOINCREMENT_STOP 0xff |
Definition at line 192 of file pios_max7456_priv.h.
#define MAX7456_DMM_CLR_CLEAR 0b1 |
Definition at line 158 of file pios_max7456_priv.h.
#define MAX7456_DMM_CLR_MASK (0b1 << 2) |
Definition at line 155 of file pios_max7456_priv.h.
#define MAX7456_DMM_CLR_R | ( | val | ) | ((val & MAX7456_DMM_CLR_MASK) >> 2) |
Definition at line 156 of file pios_max7456_priv.h.
#define MAX7456_DMM_CLR_READY 0b0 |
Definition at line 159 of file pios_max7456_priv.h.
#define MAX7456_DMM_CLR_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_DMM_CLR_MASK) | (val << 2 & MAX7456_DMM_CLR_MASK)) |
Definition at line 157 of file pios_max7456_priv.h.
#define MAX7456_HOS_POS_MASK (0x3f) |
Definition at line 145 of file pios_max7456_priv.h.
#define MAX7456_HOS_POS_R | ( | val | ) | (val & MAX7456_HOS_POS_MASK) |
Definition at line 146 of file pios_max7456_priv.h.
#define MAX7456_HOS_POS_W | ( | regval, | |
val | |||
) | (val & MAX7456_HOS_POS_MASK) |
Definition at line 147 of file pios_max7456_priv.h.
#define MAX7456_OSDBL_CTL_DISABLE 0b1 |
Definition at line 166 of file pios_max7456_priv.h.
#define MAX7456_OSDBL_CTL_ENABLE 0b0 |
Definition at line 165 of file pios_max7456_priv.h.
#define MAX7456_OSDBL_CTL_MASK (0b1 << 4) |
Definition at line 162 of file pios_max7456_priv.h.
#define MAX7456_OSDBL_CTL_R | ( | val | ) | ((val & MAX7456_OSDBL_CTL_MASK) >> 4) |
Definition at line 163 of file pios_max7456_priv.h.
#define MAX7456_OSDBL_CTL_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_OSDBL_CTL_MASK) | (val << 4 & MAX7456_OSDBL_CTL_MASK)) |
Definition at line 164 of file pios_max7456_priv.h.
#define MAX7456_STAT_CHMEM_BUSY 0b1 |
Definition at line 186 of file pios_max7456_priv.h.
#define MAX7456_STAT_CHMEM_R | ( | val | ) | ((val >> 5) & 0b1) |
Definition at line 184 of file pios_max7456_priv.h.
#define MAX7456_STAT_CHMEM_RDY 0b0 |
Definition at line 185 of file pios_max7456_priv.h.
#define MAX7456_STAT_HSYNC_FALSE 0b1 |
Definition at line 179 of file pios_max7456_priv.h.
#define MAX7456_STAT_HSYNC_R | ( | val | ) | ((val >> 3) & 0b1) |
Definition at line 178 of file pios_max7456_priv.h.
#define MAX7456_STAT_HSYNC_TRUE 0b0 |
Definition at line 180 of file pios_max7456_priv.h.
#define MAX7456_STAT_NTSC_FALSE 0b0 |
Definition at line 174 of file pios_max7456_priv.h.
#define MAX7456_STAT_NTSC_R | ( | val | ) | ((val >> 1) & 0b1) |
Definition at line 172 of file pios_max7456_priv.h.
#define MAX7456_STAT_NTSC_TRUE 0b1 |
Definition at line 173 of file pios_max7456_priv.h.
#define MAX7456_STAT_PAL_FALSE 0b0 |
Definition at line 171 of file pios_max7456_priv.h.
#define MAX7456_STAT_PAL_R | ( | val | ) | (val & 0b1) |
Definition at line 169 of file pios_max7456_priv.h.
#define MAX7456_STAT_PAL_TRUE 0b1 |
Definition at line 170 of file pios_max7456_priv.h.
#define MAX7456_STAT_RESET_BUSY 0b1 |
Definition at line 189 of file pios_max7456_priv.h.
#define MAX7456_STAT_RESET_DONE 0b0 |
Definition at line 188 of file pios_max7456_priv.h.
#define MAX7456_STAT_RESET_R | ( | val | ) | ((val >> 6) & 0b1) |
Definition at line 187 of file pios_max7456_priv.h.
#define MAX7456_STAT_SYNC_FALSE 0b1 |
Definition at line 176 of file pios_max7456_priv.h.
#define MAX7456_STAT_SYNC_R | ( | val | ) | ((val >> 2) & 0b1) |
Definition at line 175 of file pios_max7456_priv.h.
#define MAX7456_STAT_SYNC_TRUE 0b0 |
Definition at line 177 of file pios_max7456_priv.h.
#define MAX7456_STAT_VSYNC_FALSE 0b1 |
Definition at line 182 of file pios_max7456_priv.h.
#define MAX7456_STAT_VSYNC_R | ( | val | ) | ((val >> 4) & 0b1) |
Definition at line 181 of file pios_max7456_priv.h.
#define MAX7456_STAT_VSYNC_TRUE 0b0 |
Definition at line 183 of file pios_max7456_priv.h.
#define MAX7456_VM0_OSD_DISABLE 0b0 |
Definition at line 93 of file pios_max7456_priv.h.
#define MAX7456_VM0_OSD_ENABLE 0b1 |
Definition at line 92 of file pios_max7456_priv.h.
#define MAX7456_VM0_OSD_MASK (0b1 << 3) |
Definition at line 89 of file pios_max7456_priv.h.
#define MAX7456_VM0_OSD_R | ( | val | ) | ((val & MAX7456_VM0_OSD_MASK) >> 3) |
Definition at line 90 of file pios_max7456_priv.h.
#define MAX7456_VM0_OSD_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_OSD_MASK) | (val << 3 & MAX7456_VM0_OSD_MASK)) |
Definition at line 91 of file pios_max7456_priv.h.
#define MAX7456_VM0_SRB_CLEAR 0b0 |
Definition at line 81 of file pios_max7456_priv.h.
#define MAX7456_VM0_SRB_MASK (0b1 << 1) |
Definition at line 77 of file pios_max7456_priv.h.
#define MAX7456_VM0_SRB_R | ( | val | ) | ((val & MAX7456_VM0_SRB_MASK) >> 1) |
Definition at line 78 of file pios_max7456_priv.h.
#define MAX7456_VM0_SRB_RESET 0b1 |
Definition at line 80 of file pios_max7456_priv.h.
#define MAX7456_VM0_SRB_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_SRB_MASK) | (val << 1 & MAX7456_VM0_SRB_MASK)) |
Definition at line 79 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_AUTO 0b00 |
Definition at line 99 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_EXT 0b10 |
Definition at line 100 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_INT 0b11 |
Definition at line 101 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_MASK (0b11 << 4) |
Definition at line 96 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_R | ( | val | ) | ((val & MAX7456_VM0_SYNC_MASK) >> 4) |
Definition at line 97 of file pios_max7456_priv.h.
#define MAX7456_VM0_SYNC_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_SYNC_MASK) | (val << 4 & MAX7456_VM0_SYNC_MASK)) |
Definition at line 98 of file pios_max7456_priv.h.
#define MAX7456_VM0_VBE_DISABLE 0b1 |
Definition at line 75 of file pios_max7456_priv.h.
#define MAX7456_VM0_VBE_ENABLE 0b0 |
Definition at line 74 of file pios_max7456_priv.h.
#define MAX7456_VM0_VBE_MASK (0b1) |
Definition at line 71 of file pios_max7456_priv.h.
#define MAX7456_VM0_VBE_R | ( | val | ) | (val & MAX7456_VM0_VBE_MASK) |
Definition at line 72 of file pios_max7456_priv.h.
#define MAX7456_VM0_VBE_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_VBE_MASK) | (val & MAX7456_VM0_VBE_MASK)) |
Definition at line 73 of file pios_max7456_priv.h.
#define MAX7456_VM0_VS_IMMEDIATE 0b0 |
Definition at line 87 of file pios_max7456_priv.h.
#define MAX7456_VM0_VS_MASK (0b1 << 2) |
Definition at line 83 of file pios_max7456_priv.h.
#define MAX7456_VM0_VS_R | ( | val | ) | ((val & MAX7456_VM0_VS_MASK) >> 2) |
Definition at line 84 of file pios_max7456_priv.h.
#define MAX7456_VM0_VS_VSYNC 0b1 |
Definition at line 86 of file pios_max7456_priv.h.
#define MAX7456_VM0_VS_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_VS_MASK) | (val << 2 & MAX7456_VM0_VS_MASK)) |
Definition at line 85 of file pios_max7456_priv.h.
#define MAX7456_VM0_VSS_MASK (0b1 << 6) |
Definition at line 103 of file pios_max7456_priv.h.
#define MAX7456_VM0_VSS_NTSC 0b0 |
Definition at line 107 of file pios_max7456_priv.h.
#define MAX7456_VM0_VSS_PAL 0b1 |
Definition at line 106 of file pios_max7456_priv.h.
#define MAX7456_VM0_VSS_R | ( | val | ) | ((val & MAX7456_VM0_VSS_MASK) >> 6) |
Definition at line 104 of file pios_max7456_priv.h.
#define MAX7456_VM0_VSS_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM0_VSS_MASK) | (val << 6 & MAX7456_VM0_VSS_MASK)) |
Definition at line 105 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_13BT 0b11 |
Definition at line 116 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_2BT 0b01 |
Definition at line 114 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_3BT 0b10 |
Definition at line 115 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_BT 0b00 |
Definition at line 113 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_MASK (0b11) |
Definition at line 110 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_R | ( | val | ) | (val & MAX7456_VM1_BDUTY_MASK) |
Definition at line 111 of file pios_max7456_priv.h.
#define MAX7456_VM1_BDUTY_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM1_BDUTY_MASK) | (val & MAX7456_VM1_BDUTY_MASK)) |
Definition at line 112 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_0 0b000 |
Definition at line 129 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_14 0b010 |
Definition at line 131 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_21 0b011 |
Definition at line 132 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_28 0b100 |
Definition at line 133 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_35 0b101 |
Definition at line 134 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_42 0b110 |
Definition at line 135 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_49 0b111 |
Definition at line 136 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_7 0b001 |
Definition at line 130 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_MASK (0b111 << 4) |
Definition at line 126 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_R | ( | val | ) | ((val & MAX7456_VM1_BGLVL_MASK) >> 4) |
Definition at line 127 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGLVL_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM1_BGLVL_MASK) | (val << 4 & MAX7456_VM1_BGLVL_MASK)) |
Definition at line 128 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGMODE_GRAY 0b1 |
Definition at line 142 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGMODE_LOCAL 0b0 |
Definition at line 141 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGMODE_MASK (0b1 << 7) |
Definition at line 138 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGMODE_R | ( | val | ) | ((val & MAX7456_VM1_BGMODE_MASK) >> 7) |
Definition at line 139 of file pios_max7456_priv.h.
#define MAX7456_VM1_BGMODE_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM1_BGMODE_MASK) | (val << 7 & MAX7456_VM1_BGMODE_MASK)) |
Definition at line 140 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_2FIELD 0b00 |
Definition at line 121 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_4FIELD 0b01 |
Definition at line 122 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_6FIELD 0b10 |
Definition at line 123 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_8FIELD 0b11 |
Definition at line 124 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_MASK (0b11 << 2) |
Definition at line 118 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_R | ( | val | ) | ((val & MAX7456_VM1_BTIME_MASK) >> 2) |
Definition at line 119 of file pios_max7456_priv.h.
#define MAX7456_VM1_BTIME_W | ( | regval, | |
val | |||
) | ((regval & ~MAX7456_VM1_BTIME_MASK) | (val << 2 & MAX7456_VM1_BTIME_MASK)) |
Definition at line 120 of file pios_max7456_priv.h.
#define MAX7456_VOS_POS_MASK (0x3f) |
Definition at line 150 of file pios_max7456_priv.h.
#define MAX7456_VOS_POS_R | ( | val | ) | (val & MAX7456_VOS_POS_MASK) |
Definition at line 151 of file pios_max7456_priv.h.
#define MAX7456_VOS_POS_W | ( | regval, | |
val | |||
) | (val & MAX7456_VOS_POS_MASK) |
Definition at line 152 of file pios_max7456_priv.h.
enum pios_max7456_reg |
Definition at line 33 of file pios_max7456_priv.h.