R

Type Alias R 

Source
pub type R = R<FifoCtrlSpec>;
Expand description

Register FIFO_CTRL reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn tft(&self) -> TftR

Bits 0:4 - TXFIFO Trigger Threshold This field sets the threshold level at which TXFIFO asserts interrupt. The level should be set to the preferred threshold value minus 1.

Source

pub fn rft(&self) -> RftR

Bits 5:9 - RXFIFO Trigger Threshold This field sets the threshold level at which RXFIFO asserts interrupt. The level should be set to the preferred threshold value minus 1.

Source

pub fn tsre(&self) -> TsreR

Bit 10 - Transmit Service Request Enable 0 = DMA service request is disabled 1 = DMA service request is enabled

Source

pub fn rsre(&self) -> RsreR

Bit 11 - Receive Service Request Enable 0 = DMA service request is disabled 1 = DMA service request is enabled

Source

pub fn rxfifo_rd_endian(&self) -> RxfifoRdEndianR

Bits 12:13 - apb_prdata Read from Rx FIFO Endian 0x0 = apb_prdata[31:0] = rxfifo_wdata[31:0] 0x1 = apb_prdata[31:0] = {rxfifo_wdata[15:0], rxfifo_wdata[31:16]} 0x2 = apb_prdata[31:0]= {rxfifo_wdata[7:0], rxfifo_wdata[15:8], rxfifo_wdata[23:16], rxfifo_wdata[31:24]} 0x3 = apb_prdata[31:0]= {rxfifo_wdata[23:16], rxfifo_wdata[31:24], rxfifo_wdata[7:0], rxfifo_wdata[15:8]}

Source

pub fn txfifo_wr_endian(&self) -> TxfifoWrEndianR

Bits 14:15 - apb_pwdata Write to Tx FIFO Endian 0x0 = txfifo_wdata[31:0] = apb_pwdata[31:0] 0x1 = fifo_wdata[31:0] = {apb_pwdata[15:0], apb_pwdata[31:16]} 0x2 = txfifo_wdata[31:0] = {apb_pwdata[7:0], apb_pwdata[15:8], apb_pwdata[23:16], apb_pwdata[31:24]} 0x3 = txfifo_wdata[31:0] = {apb_pwdata[23:16], apb_pwdata[31:24], apb_pwdata[7:0], apb_pwdata[15:8]}

Source

pub fn fpcke(&self) -> FpckeR

Bit 16 - FIFO Packing Enable 0 = FIFO packing mode disabled 1 = FIFO packing mode enabled

Source

pub fn rxfifo_auto_full_ctrl(&self) -> RxfifoAutoFullCtrlR

Bit 17 - Rx FIFO Auto Full Control =1After this field is set to 1 and the SSP is operating in master mode, the SSP FSM returns to IDLE state and stops the ssp_sclk_gpio. When Rx FIFO is full, the SSP FSM continues transferring data after the Rx FIFO is not full. This field is used to avoid an Rx FIFO overrun issue. 1= Enable Rx FIFO auto full control

Source

pub fn efwr(&self) -> EfwrR

Bit 18 - Enable FIFO Write/read (Test Mode Bit) 0 = FIFO write/read special function is disabled (normal SSPx operational mode) 1 = FIFO write/read special function is enabled

Source

pub fn strf(&self) -> StrfR

Bit 19 - Select FIFO For Efwr (Test Mode Bit) Only when the <Enable FIFO Write/read> field = 1 0 = TXFIFO is selected for both writes and reads through the SSP Data Register 1 = RXFIFO is selected for both writes and reads through the SSP Data Register

Source

pub fn rsvd(&self) -> RsvdR

Bits 20:31