pub struct W(_);
Expand description
Register SLAVE
writer
Implementations§
§impl W
impl W
pub fn slv_rd_buf_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 0>
pub fn slv_rd_buf_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 0>
Bit 0 - The interrupt raw bit for the completion of read-buffer operation in the slave mode.
pub fn slv_wr_buf_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 1>
pub fn slv_wr_buf_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 1>
Bit 1 - The interrupt raw bit for the completion of write-buffer operation in the slave mode.
pub fn slv_rd_sta_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 2>
pub fn slv_rd_sta_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 2>
Bit 2 - The interrupt raw bit for the completion of read-status operation in the slave mode.
pub fn slv_wr_sta_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 3>
pub fn slv_wr_sta_done(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 3>
Bit 3 - The interrupt raw bit for the completion of write-status operation in the slave mode.
pub fn trans_done(&mut self) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 4>
pub fn trans_done(&mut self) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 4>
Bit 4 - The interrupt raw bit for the completion of any operation in both the master mode and the slave mode.
pub fn int_en(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_SPEC, u8, u8, Unsafe, 5, 5>
pub fn int_en(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_SPEC, u8, u8, Unsafe, 5, 5>
Bits 5:9 - Interrupt enable bits for the below 5 sources
pub fn cs_i_mode(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_SPEC, u8, u8, Unsafe, 2, 10>
pub fn cs_i_mode(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_SPEC, u8, u8, Unsafe, 2, 10>
Bits 10:11 - In the slave mode this bits used to synchronize the input spi cs signal and eliminate spi cs jitter.
pub fn slv_cmd_define(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 27>
pub fn slv_cmd_define(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 27>
Bit 27 - 1: slave mode commands are defined in SPI_SLAVE3. 0: slave mode commands are fixed as: 1: write-status 2: write-buffer and 3: read-buffer.
pub fn slv_wr_rd_sta_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 28>
pub fn slv_wr_rd_sta_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 28>
Bit 28 - write and read status enable in the slave mode
pub fn slv_wr_rd_buf_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 29>
pub fn slv_wr_rd_buf_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 29>
Bit 29 - write and read buffer enable in the slave mode
pub fn mode(&mut self) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 30>
pub fn mode(&mut self) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 30>
Bit 30 - 1: slave mode 0: master mode.
pub fn sync_reset(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 31>
pub fn sync_reset(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_SPEC, bool, BitM, 31>
Bit 31 - Software reset enable, reset the spi clock line cs line and data lines.
Methods from Deref<Target = W<SLAVE_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.