Struct d1_pac::tve::tve_line_number::W
source · pub struct W(/* private fields */);
Expand description
Register tve_line_number
writer
Implementations§
source§impl W
impl W
sourcepub fn num_lines(&mut self) -> NUM_LINES_W<'_, 0>
pub fn num_lines(&mut self) -> NUM_LINES_W<'_, 0>
Bits 0:10 - Specify the total number of lines in a video frame. 11 bits unsigned integer. Allowed range is 0 to 2048. For interlaced video: When NTSC, and FirstVideoLine is greater than 20, then NumLines is restricted to be greater than 2*(FirstVideoLine+18).
When NTSC, and FirstVideoLine is not greater than 20, then NumLines is restricted to be greater than 77. When PAL, and FirstVideoLine is greater than 22, then NumLines is restricted to be greater than 2*(FirstVideoLine+18). When PAL, and FirstVideoLine is not greater than 22, then NumLines is restricted to be greater than 81.
If NumLines is even, then it is restricted to be divisible by 4. If NumLines is odd, then it is restricted to be divisible by 4 with a remainder of 1.
sourcepub fn first_video_line(&mut self) -> FIRST_VIDEO_LINE_W<'_, 16>
pub fn first_video_line(&mut self) -> FIRST_VIDEO_LINE_W<'_, 16>
Bits 16:23 - Specify the index of the first line in a field/frame to have active video. 8 bits unsigned integer.
For interlaced video: When VSync5=B’0’, FirstVideoLine is restricted to be greater than 7. When VSync5=B’1’, FirstVideoLine is restricted to be greater than 9.