class WritebackMuxControl

Defined at line 392 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

VPU_VIU_VDIN_IF_MUX_CTRL

Each VDIN (Video Input Module) can receive image data from one of the data

sources available on the SoC, selected via the `VideoInputCommandControl`

register. Two of the data sources, `kWritebackMux0` and `kWritebackMux1`,

are actually multiplexers connected to multiple sources.

This register configures the multiplexers. Each multiplexer has clock and

data outputs ("paths" in the datasheets), which are configured separately.

Many configurations are invalid. For example, a multiplexer's clock and data

outputs must be connected to the same source. To reduce the likelihood of

errors, this register's fields should be accessed exclusively via the

higher-level helper methods defined after the fields.

S905D3 Datasheet, Section 8.2.3.1 "VPU Registers", Page 314.

This register is not documented in the datasheets for S905D2, A311D and T931.

However, experiments on VIM3 (Amlogic A311D), Astro (Amlogic S905D2) and

Sherlock (Amlogic T931) show that the register exists and has the same layout

and functionality as that in S905D3.

Public Members

 field_mux1_data_selection_405
 field_mux1_clock_selection_416
 field_mux0_data_selection_427
 field_mux0_clock_selection_438

Public Methods

hwreg::RegisterAddr<WritebackMuxControl> Get ()

Defined at line 394 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
WritebackMuxSource mux1_data_selection ()

Selects the data path from VIU/Encoder to writeback mux 1.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux1` input ("VDIN0/1 source input 9" in the datasheet).

It's preferred to use `GetMux1Selection()` and `SetMux1Selection()` helper

functions to change the data path. For direct register manipulations,

`mux1_data_selection` and `mux1_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 405 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
SelfType & set_mux1_data_selection (WritebackMuxSource val)

Selects the data path from VIU/Encoder to writeback mux 1.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux1` input ("VDIN0/1 source input 9" in the datasheet).

It's preferred to use `GetMux1Selection()` and `SetMux1Selection()` helper

functions to change the data path. For direct register manipulations,

`mux1_data_selection` and `mux1_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 405 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
WritebackMuxSource mux1_clock_selection ()

Selects the clock path from VIU/Encoder to writeback mux 1.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux1` input ("VDIN0/1 source input 9" in the datasheet).

It's preferred to use `GetMux1Selection()` and `SetMux1Selection()` helper

functions to change the data path. For direct register manipulations,

`mux1_data_selection` and `mux1_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 416 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
SelfType & set_mux1_clock_selection (WritebackMuxSource val)

Selects the clock path from VIU/Encoder to writeback mux 1.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux1` input ("VDIN0/1 source input 9" in the datasheet).

It's preferred to use `GetMux1Selection()` and `SetMux1Selection()` helper

functions to change the data path. For direct register manipulations,

`mux1_data_selection` and `mux1_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 416 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
WritebackMuxSource mux0_data_selection ()

Selects the data path from VIU/Encoder to writeback mux 0.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux0` input ("VDIN0/1 source input 7" in the datasheet).

It's preferred to use `GetMux0Selection()` and `SetMux0Selection()` helper

functions to change the data path. For direct register manipulations,

`mux0_data_selection` and `mux0_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 427 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
SelfType & set_mux0_data_selection (WritebackMuxSource val)

Selects the data path from VIU/Encoder to writeback mux 0.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux0` input ("VDIN0/1 source input 7" in the datasheet).

It's preferred to use `GetMux0Selection()` and `SetMux0Selection()` helper

functions to change the data path. For direct register manipulations,

`mux0_data_selection` and `mux0_clock_selection` must be equal, otherwise

the behavior is undefined.

Defined at line 427 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
WritebackMuxSource mux0_clock_selection ()

Selects the clock path from VIU/Encoder to writeback mux 0.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux0` input ("VDIN0/1 source input 7" in the datasheet).

It's preferred to use `GetMux0Selection()` and `SetMux0Selection()` helper

functions to change the data path. For direct register manipulations,

`mux0_data_selection` and `mux0_clock_selection` must be equal, otherwise

the behavior is WritebackMuxSelection.

Defined at line 438 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

template <, >
SelfType & set_mux0_clock_selection (WritebackMuxSource val)

Selects the clock path from VIU/Encoder to writeback mux 0.

This field is effective when a `VideoInputCommandControl` register selects

the `kWritebackMux0` input ("VDIN0/1 source input 7" in the datasheet).

It's preferred to use `GetMux0Selection()` and `SetMux0Selection()` helper

functions to change the data path. For direct register manipulations,

`mux0_data_selection` and `mux0_clock_selection` must be equal, otherwise

the behavior is WritebackMuxSelection.

Defined at line 438 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

WritebackMuxSource GetMux1Selection ()

The clock/data source selected for writeback mux 1.

Defined at line 441 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

WritebackMuxControl & SetMux1Selection (WritebackMuxSource mux_selection)

Set the data/clock source for writeback mux 1.

Defined at line 452 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

WritebackMuxSource GetMux0Selection ()

The clock/data source selected for writeback mux 0.

Defined at line 472 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

WritebackMuxControl & SetMux0Selection (WritebackMuxSource mux_selection)

Set the data/clock source for writeback mux 0.

Defined at line 483 of file ../../src/graphics/display/drivers/amlogic-display/video-input-regs.h

Records