pub struct W(_);
Expand description
Register CONF0
writer
Implementations§
§impl W
impl W
pub fn in_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 0>
pub fn in_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to reset in link operations.
pub fn out_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 1>
pub fn out_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to reset out link operations.
pub fn ahbm_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 2>
pub fn ahbm_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 2>
Bit 2 - Set this bit to reset dma ahb fifo.
pub fn ahbm_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 3>
pub fn ahbm_rst(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 3>
Bit 3 - Set this bit to reset dma ahb interface.
pub fn in_loop_test(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 4>
pub fn in_loop_test(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 4>
Bit 4 - Set this bit to enable loop test for in links.
pub fn out_loop_test(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 5>
pub fn out_loop_test(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 5>
Bit 5 - Set this bit to enable loop test for out links.
pub fn out_auto_wrback(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 6>
pub fn out_auto_wrback(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 6>
Bit 6 - when in link’s length is 0 go on to use the next in link automatically.
pub fn out_no_restart_clr(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 7>
pub fn out_no_restart_clr(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 7>
Bit 7 - don’t use
pub fn out_eof_mode(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 8>
pub fn out_eof_mode(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 8>
Bit 8 - Set this bit to produce eof after DMA pops all data clear this bit to produce eof after DMA pushes all data
pub fn uart0_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 9>
pub fn uart0_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 9>
Bit 9 - Set this bit to use UART to transmit or receive data.
pub fn uart1_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 10>
pub fn uart1_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 10>
Bit 10 - Set this bit to use UART1 to transmit or receive data.
pub fn uart2_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 11>
pub fn uart2_ce(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 11>
Bit 11 - Set this bit to use UART2 to transmit or receive data.
pub fn outdscr_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 12>
pub fn outdscr_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 12>
Bit 12 - Set this bit to enable DMA in links to use burst mode.
pub fn indscr_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 13>
pub fn indscr_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 13>
Bit 13 - Set this bit to enable DMA out links to use burst mode.
pub fn out_data_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 14>
pub fn out_data_burst_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 14>
Bit 14 - Set this bit to enable DMA burst MODE
pub fn mem_trans_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 15>
pub fn mem_trans_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 15>
Bit 15
pub fn seper_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 16>
pub fn seper_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 16>
Bit 16 - Set this bit to use special char to separate the data frame.
pub fn head_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 17>
pub fn head_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 17>
Bit 17 - Set this bit to enable to use head packet before the data frame.
pub fn crc_rec_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 18>
pub fn crc_rec_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 18>
Bit 18 - Set this bit to enable receiver’’s ability of crc calculation when crc_en bit in head packet is 1 then there will be crc bytes after data_frame
pub fn uart_idle_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 19>
pub fn uart_idle_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 19>
Bit 19 - Set this bit to enable to use idle time when the idle time after data frame is satisfied this means the end of a data frame.
pub fn len_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 20>
pub fn len_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 20>
Bit 20 - Set this bit to enable to use packet_len in packet head when the received data is equal to packet_len this means the end of a data frame.
pub fn encode_crc_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 21>
pub fn encode_crc_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 21>
Bit 21 - Set this bit to enable crc calculation for data frame when bit6 in the head packet is 1.
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 22>
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 22>
Bit 22 - Set this bit to enable clock-gating for read or write registers.
pub fn uart_rx_brk_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 23>
pub fn uart_rx_brk_eof_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF0_SPEC, bool, BitM, 23>
Bit 23 - Set this bit to enable to use brk char as the end of a data frame.
Methods from Deref<Target = W<CONF0_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.